mirror of https://github.com/goharbor/harbor.git
Replace stale.yaml with stale GH Actions
stale.yaml not supported anymore! https://github.com/marketplace/actions/close-stale-issues Signed-off-by: OrlinVasilev <ovasilev@vmware.com>
This commit is contained in:
parent
527508fca5
commit
4f34ef5bed
|
@ -1,27 +0,0 @@
|
|||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 90
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 21
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- backlog
|
||||
- kind/debt
|
||||
- need-triage
|
||||
- kind/requirement
|
||||
- kind/bug
|
||||
- Epic
|
||||
- target/1.10.7
|
||||
- target/2.1.3
|
||||
- target/2.1.4
|
||||
- target/2.2.0
|
||||
- target/2.2.1
|
||||
- target/2.3.0
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: staled
|
||||
# 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 not had
|
||||
recent 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: false
|
|
@ -0,0 +1,23 @@
|
|||
name: Housekeeping - Close stale issues and PRs
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 9 * * *'
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v5.0.0
|
||||
with:
|
||||
stale-issue-message: 'This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.'
|
||||
stale-pr-message: 'This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days.'
|
||||
close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.'
|
||||
close-pr-message: 'This PR was closed because it has been stalled for 30 days with no activity. If this PR is still relevant, please re-open a new PR against main.'
|
||||
days-before-issue-stale: 60
|
||||
days-before-pr-stale: 60
|
||||
days-before-issue-close: 30
|
||||
days-before-pr-close: 30
|
||||
# Don't add stale label to PRs / issues with milestones "upcoming" attached.
|
||||
exempt-milestones: "upcoming"
|
||||
# Don't add stale label to PRs / issues with this label
|
||||
exempt-issue-labels: "never-stale"
|
Loading…
Reference in New Issue