-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scheduled workflow to auto-label issues (#3245)
* Add issue gardening workflow
- Loading branch information
1 parent
5934d4a
commit 10fee72
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
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: 'Issue Gardening' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
issue-gardening: | ||
name: ${{ matrix.name }} | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'woocommerce/woocommerce-gateway-stripe' }} | ||
strategy: | ||
matrix: | ||
include: | ||
|
||
- name: 'Issues that require more info' | ||
message: 'Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward.' | ||
days-before-stale: 15 | ||
days-before-close: -1 | ||
only-labels: 'status: needs more info' | ||
remove-stale-when-updated: true | ||
stale-issue-label: 'status: stale' | ||
|
||
- name: 'Issues without activity for 5 months' | ||
message: "Hi,\nThis issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.\nThanks for helping out." | ||
days-before-stale: 150 | ||
days-before-close: -1 | ||
only-labels: '' | ||
remove-stale-when-updated: true | ||
stale-issue-label: 'status: needs confirmation' | ||
|
||
- name: 'Issues without activity for 6 months' | ||
message: 'This issue has gone 180 days (6 months) without any activity.' | ||
days-before-stale: 30 | ||
days-before-close: -1 | ||
only-labels: 'status: needs confirmation' | ||
remove-stale-when-updated: true | ||
stale-issue-label: 'status: stale' | ||
|
||
steps: | ||
- name: Update issues | ||
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: ${{ matrix.message }} | ||
days-before-stale: ${{ matrix.days-before-stale }} | ||
days-before-close: ${{ matrix.days-before-close }} | ||
only-labels: ${{ matrix.only-labels }} | ||
remove-stale-when-updated: ${{ matrix.remove-stale-when-updated }} | ||
stale-issue-label: ${{ matrix.stale-issue-label }} |