From dab9bc2d96fbb0b7eb313c0db9f7d54f0db38901 Mon Sep 17 00:00:00 2001 From: zoomchan-cxj Date: Tue, 28 Jun 2022 23:11:43 +0800 Subject: [PATCH] ci(workflows): update stale actions parameters --- .../workflows/gh_mark_and_close_stalled.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gh_mark_and_close_stalled.yml b/.github/workflows/gh_mark_and_close_stalled.yml index 9e948f3a1..a75c4fc40 100644 --- a/.github/workflows/gh_mark_and_close_stalled.yml +++ b/.github/workflows/gh_mark_and_close_stalled.yml @@ -1,25 +1,26 @@ name: '[gh] mark and close stale issues and PRs' on: + workflow_dispatch: schedule: # Run every day at 7:00 AM UTC. - cron: '0 7 * * *' env: CLOSE_PR_MESSAGE: | - 🤖: Sorry, closing this PR because it has stalled for over 4 months. - Feel free to reopen if this PR is still relevant, or to ping the collaborator if you have any questions. + 🤖: "Sorry, closing this PR because it has stalled for over 4 months. + Feel free to reopen if this PR is still relevant, or to ping the collaborator if you have any questions." CLOSE_ISSUE_MESSAGE: | - 🤖: Sorry, closing this issue because it has stalled for over 3 months. - Feel free to reopen if this issue is still relevant, or to ping the collaborator if you have any questions. + 🤖: "Sorry, closing this issue because it has stalled for over 3 months. + Feel free to reopen if this issue is still relevant, or to ping the collaborator if you have any questions." STALE_PR_MESSAGE: | - 🤖: Pay attention 🛎️ !! + 🤖: "Pay attention 🛎️ !! There has been no activity on this PR for 2 months, so I will label it stalled. - It will be automatically closed in 30 days if no more activity. Feel free to leave a comment if you have any questions. + It will be automatically closed in 30 days if no more activity. Feel free to leave a comment if you have any questions." STALE_ISSUE_MESSAGE: | - 🤖: Pay attention 🛎️ !! + 🤖: "Pay attention 🛎️ !! There has been no activity on this issue for 2 months, so I will label it stalled. - It will be automatically closed in 60 days if no more activity. Feel free to leave a comment if you have any questions. + It will be automatically closed in 60 days if no more activity. Feel free to leave a comment if you have any questions." jobs: stale: @@ -45,5 +46,5 @@ jobs: close-issue-message: ${{ env.CLOSE_ISSUE_MESSAGE }} stale-issue-label: stale # max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits - operations-per-run: 50 + operations-per-run: 500 remove-stale-when-updated: true