Merge branch 'master' into maintenance

This commit is contained in:
Gina Häußge committed 2021-01-15 15:59:38 +01:00
commit eb7348dfee
5 files changed
+107 -23

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
name: "Cleanup issues & PRs"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
lock:
name: 🔒 Lock issues & PRs closed over a year
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-comment: ""
pr-lock-comment: ""
cleanup:
name: 🧹 Close issues marked as incomplete & older than 14 days
runs-on: ubuntu-latest
steps:
- id: date
run: |
echo "::set-output name=CUTOFF::`date --date='14 days ago' +'%Y-%m-%d'`"
- uses: OctoPrint/actions/close-by-query@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
query: "is:issue is:open label:incomplete created:<${{ steps.date.outputs.CUTOFF }}"
comment: >
Since apparently some of the required information is still missing, this will be
closed now, sorry. Feel free to request a reopen of this or create a new issue
once you can provide **all**
[required information](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md#how-to-file-a-bug-report).
This is nothing personal. Thank you for your collaboration.
+6 -1
View File
@@ -4,7 +4,7 @@ on:
types: [opened, edited, closed, reopened]
jobs:
label:
issue-automation:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v2
@@ -62,3 +62,8 @@ jobs:
labels: labels
})
}
- uses: OctoPrint/actions/issue-validation@main
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'edited')
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
-16
View File
@@ -1,16 +0,0 @@
name: "Lock outdated issues & PRs"
on:
schedule:
- cron: "0 0 * * *"
jobs:
lock:
runs-on: ubuntu-latest
steps:
- name: 🔒 Lock issues & PRs closed over a year
uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-comment: ""
pr-lock-comment: ""
+2 -6
View File
@@ -4,17 +4,13 @@ on:
types: ["opened", "synchronize", "reopened", "edited", "labeled", "unlabeled"]
jobs:
label:
pr-automation:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
validate:
runs-on: ubuntu-latest
needs: label
steps:
- uses: OctoPrint/actions/pr-validation@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}