Skip to content

Commit

Permalink
(#1754) Replace Stalebot with GitHub action
Browse files Browse the repository at this point in the history
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
AdmiringWorm committed Feb 14, 2022
1 parent b3e0dc7 commit dfb0a31
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 62 deletions.
61 changes: 0 additions & 61 deletions .github/stale.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/stale.yml
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.*, ',') }}
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ All contributors should issue pull request containing single package. In special

### 3.3 Open issues and pull request expires after 6 months

Issues and PRs that remain open for 6 months without any feedback may be closed with label [Unresolved](https://github.com/chocolatey-community/chocolatey-packages/issues?utf8=%E2%9C%93&q=label%3AUnresolved%20).
Issues that remain open for 2 months without any activity will be marked as pending closure, if addition 14 days goes by without any activity the issue will be closed with the label [Unresolved](https://github.com/chocolatey-community/chocolatey-packages/issues?utf8=%E2%9C%93&q=label%3AUnresolved%20).

Pull Requests that have changes requested, and/or is marked with the label [0 - Waiting on User](https://github.com/chocolatey-community/chocolatey-packages/issues?q=is%3Aopen+label%3A%220+-+Waiting+on+User%22+sort%3Aupdated-desc) will be closed after 30 days of inactivity.

### 3.4 Understanding labels

Expand Down

0 comments on commit dfb0a31

Please sign in to comment.