From 2dd7e82fdccc5c7c7772e7313199f4a44751af3c Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Wed, 22 May 2024 16:30:38 -0400 Subject: [PATCH] ci: add stale workflow in debug mode --- .github/workflows/stale.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..004af6021e --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,41 @@ +name: stale + +on: + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v9 + id: stale + with: + debug-only: true + days-before-stale: 90 + days-before-close: 7 + ascending: true + + # Ignore all assigned + exempt-all-assignees: true + + # Issues + stale-issue-label: 'stale' + exempt-issue-labels: 'blocked,must,should,keep,created-by: Payload team' + stale-issue-message: > + This issue has been marked as stale due to lack of activity. To keep the ticket open, please indicate that it is still relevant in a comment below. + close-issue-message: > + This issue was automatically closed due to lack of activity. + + # Pull Requests + stale-pr-label: 'stale' + exempt-pr-labels: 'blocked,must,should,keep,created-by: Payload team' + stale-pr-message: > + This PR is stale due to lack of activity. To keep the PR open, please indicate that it is still relevant in a comment below. + close-pr-message: > + This pull request was automatically closed due to lack of activity. + + - name: Print outputs + run: echo ${{ format('{0},{1}', toJSON(steps.stale.outputs.staled-issues-prs), toJSON(steps.stale.outputs.closed-issues-prs)) }}