From bd56d495536cb3490ee88fe422efa92f0f69d7e1 Mon Sep 17 00:00:00 2001 From: Xavier MARCELET Date: Tue, 25 Apr 2023 15:44:47 +0200 Subject: [PATCH] add stale issue and pr workflow --- .github/workflows/stale-issue-pr.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/stale-issue-pr.yml diff --git a/.github/workflows/stale-issue-pr.yml b/.github/workflows/stale-issue-pr.yml new file mode 100644 index 00000000..4e904f32 --- /dev/null +++ b/.github/workflows/stale-issue-pr.yml @@ -0,0 +1,26 @@ +name: stale-issue-pr + +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Comment or this will be closed in 5 days.' + close-issue-message: 'This issue was automatically closed because it has been stalled for 5 days with no activity.' + close-pr-message: 'This PR was automatically closed because it has been stalled for 5 days with no activity.' + days-before-stale: 60 + days-before-close: 5 + exempt-all-pr-assignees: true + operations-per-run: 60