From 6c22ff694d50f4d19f60bf9d37a4909e3726e731 Mon Sep 17 00:00:00 2001 From: duguyihou Date: Sat, 28 Sep 2024 14:45:36 +1000 Subject: [PATCH] ci: stale bot testing --- .github/workflows/stale.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 0000000..792d585 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,24 @@ +name: 'Stale bot' +on: + workflow_dispatch: + schedule: + - cron: '0 15 * * *' +permissions: + pull-requests: write + issues: write +jobs: + stale: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/stale@main + id: stale + with: + repo-token: ${{ secrets.GRADIENT_GITHUB_TOKEN }} + stale-pr-message: 'This PR is stale because it has been open for more than 1 days with no activity. To mark it as active, either remove the `stale` label or comment. Otherwise it will be closed within 7 days.' + days-before-stale: 1 + days-before-close: 2 + operations-per-run: 200 + stale-issue-message: "This issue has been marked as stale due to inactivity because it has been open for more than 2 days with no activity. It will be closed if no further activity occurs within 7 days" + close-pr-message: "This pull request has been closed due to inactivity." + close-issue-message: "This issue has been closed due to inactivity." \ No newline at end of file