diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml new file mode 100644 index 00000000000..079a612665b --- /dev/null +++ b/.github/workflows/close-stale-issues.yml @@ -0,0 +1,19 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 2 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: 2 + days-before-issue-close: 2 + stale-issue-label: "stale" + stale-issue-message: "Since the issue was labeled with `invalid`, but no response in 2 days. This issue will be closed. If you have any questions, you can comment and reply. 由于该 issue 被标记为不合规工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复" + close-issue-message: "Since the issue was labeled with `need-repro-project`, but no response in 2 days. This issue will be closed. If you have any questions, you can comment and reply. 由于该 issue 被标记为需要复现工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复" + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml deleted file mode 100644 index ac743f0102e..00000000000 --- a/.github/workflows/issue-check-inactive.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Issue Check Inactive - -on: - schedule: - - cron: "0 0 */15 * *" - -permissions: - contents: read - -jobs: - issue-check-inactive: - permissions: - issues: write - runs-on: ubuntu-latest - steps: - - name: check-inactive - uses: actions-cool/issues-helper@v3 - with: - actions: 'check-inactive' - token: ${{ secrets.GITHUB_TOKEN }} - inactive-label: 'inactive' - inactive-day: 3 - body: | - Since the issue was labeled with `invalid`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. - - 由于该 issue 被标记为不合规工程,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 diff --git a/.github/workflows/issue-close-required.yml b/.github/workflows/issue-close-required.yml deleted file mode 100644 index e85abca0f96..00000000000 --- a/.github/workflows/issue-close-required.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Issue Close Require - -on: - schedule: - - cron: "0 10 * * *" - -permissions: - contents: read - -jobs: - issue-close-require: - permissions: - issues: write - runs-on: ubuntu-latest - steps: - - name: needs repro project - uses: actions-cool/issues-helper@v3 - with: - actions: 'close-issues' - token: ${{ secrets.GITHUB_TOKEN }} - labels: 'need-repro-project' - inactive-day: 2 - body: | - Since the issue was labeled with `need-repro-project`, but no response in 2 days. This issue will be closed. If you have any questions, you can comment and reply. - - 由于该 issue 被标记为需要复现工程,却 2 天未收到回应。现关闭 issue,若有任何问题,可评论回复。