From a418cbc1dc16879077c139b7a9e1e3e3141ed454 Mon Sep 17 00:00:00 2001 From: Amith Koujalgi <1876165+amithkoujalgi@users.noreply.github.com> Date: Wed, 29 Jan 2025 00:17:11 +0530 Subject: [PATCH] Create label-issue-stale.yml --- .github/workflows/label-issue-stale.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/label-issue-stale.yml diff --git a/.github/workflows/label-issue-stale.yml b/.github/workflows/label-issue-stale.yml new file mode 100644 index 0000000..c2b7762 --- /dev/null +++ b/.github/workflows/label-issue-stale.yml @@ -0,0 +1,22 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '0 0 * * *' # Runs every day at midnight + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - name: Mark stale issues and pull requests + uses: actions/stale@v8 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 15 + stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.' + stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.' + days-before-close: 7 + stale-issue-label: 'stale' + exempt-issue-labels: 'pinned,security' + stale-pr-label: 'stale' + exempt-pr-labels: 'work-in-progress'