diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-09 15:34:52 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-12-09 15:34:54 +0100 |
commit | bf096599e4bad8a595257654ec5a0a1c4ae2e15a (patch) | |
tree | f85977d8c2b6ba2890f892521717f7a4d9e6b516 /.github/workflows/stale.yml | |
parent | ffa3dc526e8a793604eabfdbf4e2caac7b1acf5f (diff) | |
download | vyos-1x-bf096599e4bad8a595257654ec5a0a1c4ae2e15a.tar.gz vyos-1x-bf096599e4bad8a595257654ec5a0a1c4ae2e15a.zip |
GitHub: add stale PR auto labeler
Add "stale" tag to PRs with 30 days of no activity.
Diffstat (limited to '.github/workflows/stale.yml')
-rw-r--r-- | .github/workflows/stale.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..d21d151f7 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,22 @@ +name: "Issue and PR stale management" +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + if: github.repository == 'vyos/vyos-1x' + steps: + # Issue stale management + - uses: actions/stale@v6 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 90 + days-before-close: -1 + stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. The issue will be reviewed by a maintainer and may be closed' + stale-issue-label: 'state: stale' + exempt-issue-labels: 'state: accepted, state: in-progress' + stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. The PR will be reviewed by a maintainer and may be closed' + stale-pr-label: 'state: stale' + exempt-pr-labels: 'state: accepted, state: in-progress' |