From 57221bfabba45742829212f2d0313d98a9d63cbd Mon Sep 17 00:00:00 2001 From: "Immanuel Daviel A. Garcia" <34188635+AlexDev404@users.noreply.github.com> Date: Sat, 17 Sep 2022 22:54:45 -0600 Subject: [PATCH] Workflow to automatically mark stale issues and pull requests --- .github/workflows/mark-stale-pulls.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/mark-stale-pulls.yml diff --git a/.github/workflows/mark-stale-pulls.yml b/.github/workflows/mark-stale-pulls.yml new file mode 100644 index 0000000..1cbc6ef --- /dev/null +++ b/.github/workflows/mark-stale-pulls.yml @@ -0,0 +1,24 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: "30 1 * * *" + +jobs: + stale: + + runs-on: ubuntu-latest + + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: "👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the `Keep` label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot." + stale-issue-label: "Stale" + exempt-issue-labels: "Keep" + stale-pr-message: "👋 This pull request has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the `Keep` label to hold stale off permanently, or do nothing. If you do nothing this pull request will be closed eventually by the stale bot." + stale-pr-label: "Stale" + exempt-pr-labels: "Keep" + days-before-stale: 31 # That's roughly one month. + days-before-close: 7 + ascending: true