From fb8b04fb18e1c206bb6f53163315d7bb74cf205b Mon Sep 17 00:00:00 2001 From: Arnaud Pouliquen Date: Tue, 10 Oct 2023 10:04:45 +0200 Subject: [PATCH] github action: add stales action Add action to add stale label on issues and PR when no activity during 45 days. Signed-off-by: Arnaud Pouliquen --- .github/workflows/stales.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/stales.yml diff --git a/.github/workflows/stales.yml b/.github/workflows/stales.yml new file mode 100644 index 00000000..b72d0dec --- /dev/null +++ b/.github/workflows/stales.yml @@ -0,0 +1,26 @@ +name: 'Stale issues and pull requests with no recent activity' +on: + schedule: + - cron: "15 00 * * *" + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4.1.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been marked as a stale issue because it has been open (more than) 45 days with no activity.' + stale-pr-message: 'This pull request has been marked as a stale pull request because it has been open (more than) 45 days with no activity.' + stale-issue-label: Stale + stale-pr-label: Stale + exempt-issue-labels: bug,enhancement + exempt-pr-labels: bug,enhancement + days-before-stale: 45 + remove-stale-when-updated: true + remove-issue-stale-when-updated: true + remove-pr-stale-when-updated: true