Update and clean up GitHub workflows

This commit is contained in:
Mathias Rasmussen 2021-12-28 18:58:10 +01:00
parent f2559fbfd8
commit b4d5d6dc0d
3 changed files with 29 additions and 25 deletions

View File

@ -1,12 +0,0 @@
# Configuration for probot-no-response - https://github.com/probot/no-response
# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 1
# Label requiring a response
responseRequiredLabel: Missing Information
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because the information we asked
to be provided when opening it was not supplied by the original author.
With only the information that is currently in the issue, we don't have
enough information to take action.

17
.github/workflows/no-response.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: No Response
on:
issue_comment:
types: [created]
schedule:
- cron: 0 4 * * *
jobs:
no-response:
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb # v0.5.0
with:
daysUntilClose: 1
responseRequiredLabel: Missing Information
token: ${{ github.token }}

View File

@ -1,32 +1,31 @@
name: 'Close stale issues'
name: Stale Issues and PRs
on:
schedule:
- cron: "30 4 * * *"
- cron: 30 4 * * *
jobs:
stale:
name: 'Check and close stale issues'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
operations-per-run: 30
exempt-all-milestones: true
days-before-stale: 30
days-before-close: 7
stale-issue-message: >
This issue has been automatically marked as stale because it
has not had recent activity. It will be closed if no further activity occurs
within a week.
close-issue-message: 'Issue closed automatically as inactive.'
exempt-issue-labels: 'BUG,Feature Request,Pinned'
stale-issue-label: 'Inactive'
close-issue-message: Issue closed automatically as inactive.
stale-issue-label: Inactive
exempt-issue-labels: BUG,Feature Request,Pinned
stale-pr-message: >
This pull request has been automatically marked as stale because it
has not had recent activity. It will be closed if no further activity occurs
within a week.
close-pr-message: 'Pull request closed automatically as inactive.'
exempt-pr-labels: 'Pinned'
stale-pr-label: 'Inactive'
exempt-all-milestones: true
close-pr-message: Pull request closed automatically as inactive.
stale-pr-label: Inactive
exempt-pr-labels: Pinned