From d26ec690e800e603e7d5ef7ccc13832c4ad89ed6 Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 5 Mar 2024 09:35:06 +0000 Subject: [PATCH] (CI) add bounty stale bot --- .github/workflows/bounty_stale.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/bounty_stale.yml diff --git a/.github/workflows/bounty_stale.yml b/.github/workflows/bounty_stale.yml new file mode 100644 index 0000000..aefb556 --- /dev/null +++ b/.github/workflows/bounty_stale.yml @@ -0,0 +1,22 @@ +name: Close inactive bounties + +on: + schedule: + - cron: "0 8 * * *" + +permissions: + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9.0.0 + with: # https://github.com/actions/stale?tab=readme-ov-file#all-options + days-before-pr-stale: 7 + days-before-pr-close: 7 + only-labels: "bounty" + stale-issue-label: "stale" + stale-issue-message: "This bounty is stale because it has been opened for 7 days with no activity." + close-issue-message: "This bounty was closed because it has been inactive for 7 days since being marked as stale." + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file