From cda91850dfee308056ed4f8543a3d6745d576c89 Mon Sep 17 00:00:00 2001 From: ankitdas13 <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 26 Sep 2022 08:42:04 +0530 Subject: [PATCH 1/2] feat(stale): Stale implementation for issues and pr # Stale Whenever an issue or Pull Request has not been updated for a while, a stale label will be placed to mark it as stale. A closing comment may also be posted to notify contributors. The stale label is removed if the Issue or Pull Request is updated, or if anyone comments on it. Use the official Stale action located at https://github.com/actions/stale --- .github/workflows/stale.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 00000000..7308d73f --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,30 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '29 1 * * *' # Runs at 01:29 UTC every day. + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days' + stale-pr-message: 'This Pr is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days' + stale-issue-label: 'Stale' + stale-pr-label: 'Stale' + days-before-stale: 30 + days-before-close: 7 +Footer From 7fb512f6542e5ab16e7a844137dbd2a3db20ae47 Mon Sep 17 00:00:00 2001 From: ankitdas13 <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 26 Sep 2022 10:09:39 +0530 Subject: [PATCH 2/2] remove footer keyword --- .github/workflows/stale.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 7308d73f..7d304f12 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -26,5 +26,4 @@ jobs: stale-issue-label: 'Stale' stale-pr-label: 'Stale' days-before-stale: 30 - days-before-close: 7 -Footer + days-before-close: 7