Skip to content

Commit

Permalink
Add scheduled workflow to auto-label issues (#3245)
Browse files Browse the repository at this point in the history
* Add issue gardening workflow
  • Loading branch information
diegocurbelo authored Aug 31, 2024
1 parent 5934d4a commit 10fee72
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/issue-gardening.yml
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 }}

0 comments on commit 10fee72

Please sign in to comment.