Repository navigation
ci: automate the awaiting-response triage label #3334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # When the author of an issue labeled "awaiting-response" comments, remove that label (and | ||
| # "stale", if present) so that the issue returns to the triage queue. | ||
|
|
||
| name: "Triage: remove awaiting-response on author reply" | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: | ||
| - created | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| remove-awaiting-response: | ||
| if: >- | ||
| ${{ | ||
| (github.repository_owner == 'nvidia' || github.repository_owner == 'nvidia-dev') && | ||
| !github.event.issue.pull_request && | ||
| github.event.comment.user.login == github.event.issue.user.login && | ||
| contains(github.event.issue.labels.*.name, 'awaiting-response') | ||
| }} | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| issues: write | ||
| steps: | ||
| - name: Remove awaiting-response | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| GH_REPO: ${{ github.repository }} | ||
| NUMBER: ${{ github.event.issue.number }} | ||
| HAS_STALE: ${{ contains(github.event.issue.labels.*.name, 'stale') }} | ||
| run: | | ||
| set -euo pipefail | ||
| args=(--remove-label awaiting-response) | ||
| if [[ "$HAS_STALE" == "true" ]]; then | ||
| args+=(--remove-label stale) | ||
| fi | ||
| gh issue edit "$NUMBER" "${args[@]}" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Close issues that wait on their reporter. An issue labeled "awaiting-response" with no | ||
| # activity for 7 days gets a warning and the "stale" label; 7 days after the warning it closes | ||
| # as not planned. Any activity removes "stale" and restarts the clock. Pull requests are never | ||
| # touched. | ||
|
|
||
| name: "Triage: close issues awaiting response" | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "17 6 * * *" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| close-awaiting-response: | ||
| if: ${{ github.repository_owner == 'nvidia' || github.repository_owner == 'nvidia-dev' }} | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: write | ||
| issues: write | ||
| steps: | ||
| - name: Warn and close issues awaiting response | ||
| uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 | ||
| with: | ||
| only-issue-labels: awaiting-response | ||
| days-before-issue-stale: 7 | ||
| days-before-issue-close: 7 | ||
| days-before-pr-stale: -1 | ||
| days-before-pr-close: -1 | ||
|
Comment on lines
+33
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. important: Disable stale-label removal for PRs. If an open PR has a Set As per path instructions, review GitHub automation for “status and check behavior.” Source: Path instructions
Comment on lines
+33
to
+34
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. — codex GPT-6 on behalf of Ralf — These
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @Andy-Jost, did you see this finding? It'd be good to know what you think about it; that'll help me figure out what codex findings need more scrutiny. E.g. was the finding completely off, or too edge-casy? |
||
| stale-issue-label: stale | ||
| close-issue-reason: not_planned | ||
| stale-issue-message: >- | ||
| This issue has waited 7 days for the information we asked for. | ||
| It will close in 7 days unless there is a reply. | ||
| Comment here to keep it open. | ||
| close-issue-message: >- | ||
| Closing because we did not hear back. | ||
| Comment here with the requested information and we'll reopen it. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: NVIDIA/cuda-python
Length of output: 6736
important: Reopen automatically closed issues after an author reply.
When an author replies after
triage-close-awaiting-response.ymlcloses an issue, this workflow removes the labels but leaves the issue closed. This contradicts the close message and prevents the issue from returning to the triage queue.Reopen issues closed by this automation after the author replies, or route those replies to a process that can review and reopen them.