Issue #7219 - Migrate to Github Workflow Stale (#7221)

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2021-12-07 11:55:56 -06:00 committed by GitHub
parent fb7613581f
commit 5de3e4901c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 30 deletions

30
.github/stale.yml vendored
View File

@ -1,30 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 365
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 30
# Issues with these labels will never be considered stale
exemptLabels:
- Pinned
- Security
- Specification
- TCK
# Label to use when marking an issue as stale
staleLabel: Stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has been a
full year without activity. It will be closed if no further activity occurs.
Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
This issue has been closed due to it having no activity.
# Issue/PRs having project assigned will not be marked as stale
exemptProjects: false
pulls:
daysUntilStale: 15
daysUntilClose: false
markComment: >
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. Thank you
for your contributions.

31
.github/workflows/stale-action.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: "Mark or close stale issues and PRs"
on:
schedule:
- cron: "0 0 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 365
stale-issue-label: Stale
stale-pr-label: Stale
stale-issue-message: |
This issue has been automatically marked as stale because it has been a
full year without activity. It will be closed if no further activity occurs.
Thank you for your contributions.
stale-pr-message: |
This pull request has been automatically marked as stale because it has been a
full year without activity. It will be closed if no further activity occurs.
Thank you for your contributions.
# Not stale if using these labels
exempt-issue-labels: Pinned,Security,Specification,TCK
exempt-pr-labels: Pinned,Security,Specification,TCK
exempt-all-milestones: false
days-before-close: 30
delete-branch: true
close-issue-message: This issue has been closed due to it having no activity.
close-pr-message: This pull request has been closed due to it having no activity.