forked from chocolatey-community/chocolatey-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#1754) Replace Statebot with GitHub action
When we renamed the repository previously the stalebot stopped working on this repository, this PR re-adds the stalebot but as part of a daily GitHub action instead.
- Loading branch information
1 parent
b3e0dc7
commit 34340e1
Showing
3 changed files
with
53 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: 'Stale Issue and PR Cleanup' | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 4 * * *' | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v4.1.0 | ||
id: stale | ||
with: | ||
days-before-stale: 60 | ||
days-before-close: 14 | ||
days-before-pr-close: 30 | ||
exempt-all-issue-allignees: | ||
exempt-draft-pr: | ||
stale-issue-label: Pending closure | ||
only-pr-labels: '0 - Waiting on User' | ||
close-issue-label: Unresolved | ||
close-pr-label: 'Unresolved' | ||
exempt-issue-labels: 'Security / CVE,0 - Backlog,1 - Ready for work,2 - Working, 3 - Review, 5 - Push required' | ||
exempt-pr-labels: 'Security / CVE' | ||
labels-to-remove-when-unstale: '0 - Wating on User,Pending closure' | ||
stale-issue-message: | | ||
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? | ||
This issue will be closed in 14 days if it continues to be inactive. | ||
close-issue-message: | | ||
Dear contributor, | ||
because this issue seems to have been inactive for quite some time now, I've automatically closed it. | ||
If you still feel this is a valid issue, please feel free to re-open the issue if/when a pull request | ||
have been added. | ||
Thank you for your contribution. | ||
close-pr-message: | | ||
Dear contributor, | ||
because this PR seems to have been inactive for 30 days after changes or additional information | ||
was requested, I've automatically closed it. | ||
If you still feel the changes are still valid, please re-open the PR once all changes or additional information | ||
that was requested has been added. | ||
Thank you for your contribution. | ||
- name: Print outputs | ||
run: echo ${{ join(steps.stale.outputs.*, ',') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters