Repository navigation
Close stale resolved/wait-feedback issues #70
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Close stale resolved/wait-feedback issues" | |
| on: | |
| schedule: | |
| - cron: '0 6,14,22 * * *' | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| remove-wait-feedback-on-comment: | |
| if: ${{ github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'wait-feedback') }} | |
| runs-on: linux-amd64-cpu-2-hk | |
| container: | |
| image: swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/vllm-ascend/act-environments-ubuntu:act-22.04 | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Install system dependencies | |
| run: | | |
| sudo mkdir -p -m 755 /etc/apt/keyrings | |
| curl -sL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null | |
| sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null | |
| sudo apt-get update -y | |
| sudo apt-get install gh -y | |
| # When an issue tagged with "wait-feedback" receives a new response, the "wait-feedback" tag will be removed. | |
| - run: gh issue edit "${{ github.event.issue.number }}" --remove-label "wait-feedback" --repo "${{ github.repository }}" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| stale: | |
| if: ${{ github.event_name == 'schedule' }} | |
| runs-on: linux-amd64-cpu-2-hk | |
| permissions: | |
| actions: write | |
| issues: write | |
| steps: | |
| - uses: actions/stale@v11 | |
| with: | |
| # Process issues with the 'resolved' label | |
| any-of-labels: 'resolved' | |
| # Increase the operations budget so older (least-recently-updated) | |
| # issues are still reached before the per-run quota is exhausted. | |
| # The action processes issues newest-updated-first; with the default | |
| # of 30, stale-eligible issues sitting at the tail of the list (e.g. | |
| # ones that have had no activity for weeks) never get processed. | |
| operations-per-run: 1000 | |
| # Mark as stale after a period of inactivity | |
| days-before-stale: 7 | |
| stale-issue-label: 'stale' | |
| stale-issue-message: | | |
| This issue has been marked as `resolved` but has not received any feedback for some time, so it is now labeled as `stale`. | |
| If you feel this was a mistake, please leave a comment to have the `stale` label removed. | |
| `Stale` issues will automatically be closed after 14 days of inactivity. | |
| # Close stale issues after a period of inactivity | |
| days-before-close: 14 | |
| close-issue-message: | | |
| This issue is being closed due to a lack of recent activity. | |
| If you have any further questions or requirements, please feel free to reopen this issue or create a new one. | |
| # Automatically remove the 'stale' label when the issue is updated (default is true) | |
| remove-stale-when-updated: true | |
| # Also remove the 'resolved' label | |
| labels-to-remove-when-unstale: 'resolved' | |
| # Avoid accidental PR processing (PRs can be handled if needed; this is issue-only) | |
| days-before-pr-stale: -1 | |
| days-before-pr-close: -1 | |
| - uses: actions/stale@v11 | |
| with: | |
| # Process issues with the 'wait-feedback' label | |
| any-of-labels: 'wait-feedback' | |
| # See note above: default operations-per-run (30) is too small and | |
| # causes the oldest wait-feedback issues to starve at the queue tail. | |
| operations-per-run: 1000 | |
| # Mark as stale after a period of inactivity | |
| days-before-stale: 7 | |
| stale-issue-label: 'stale' | |
| stale-issue-message: | | |
| This issue has been marked as `wait-feedback` but has not received any feedback for some time, so it is now labeled as `stale`. | |
| To more accurately locate and resolve the issue, we need you to provide the relevant information mentioned above. | |
| `Stale` issues will automatically be closed after 14 days of inactivity. | |
| # Close stale issues after a period of inactivity | |
| days-before-close: 14 | |
| close-issue-message: | | |
| This issue is being closed due to a lack of recent activity. | |
| If you have any further questions or requirements, please feel free to reopen this issue or create a new one. | |
| # Automatically remove the 'stale' label when the issue is updated (default is true) | |
| remove-stale-when-updated: true | |
| # Also remove the 'wait-feedback' label | |
| labels-to-remove-when-unstale: 'wait-feedback' | |
| # Avoid accidental PR processing (PRs can be handled if needed; this is issue-only) | |
| days-before-pr-stale: -1 | |
| days-before-pr-close: -1 |