fix(triage): skip code label for closed issues - #1120
Conversation
Functional tests did not runFunctional tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the |
PR Summary by QodoSkip ready-to-code labeling for closed or unverifiable issues
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Check the current GitHub issue state immediately before applying the deferred ready-to-code label. Fail closed for that routing label when the state cannot be verified. Refs fullsend-ai/fullsend#6156 Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Shai Revivo <srevivo@redhat.com>
b3d9185 to
58cbd92
Compare
Code Review by Qodo
1.
|
Sanitize the issue number in the workflow warning and verify that API lookup failures preserve informational labels and the triage comment. Refs fullsend-ai/fullsend#6156 Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Shai Revivo <srevivo@redhat.com>
Write JSON fixtures with printf and scope mock issue state to each command. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Shai Revivo <srevivo@redhat.com>
|
Can you modify this to not be special-cased only for github? |
Yes, good point. on it. Adding Jira and Gitlab as well |
The ready-to-code closed-issue guard was gated on FULLSEND_TRACKER=github, so GitLab and Jira issues could still be routed to the code agent after being closed. Add a tracker_issue_state operation to each tracker ops library (github/gitlab/jira) that normalizes the native state to open/closed and fails non-zero when it cannot be determined, then have post-triage call it tracker-agnostically. The guard continues to fail closed for both a verified-closed issue and an unverifiable one. Add GitLab and Jira regression tests covering the closed-issue skip and the state-lookup-failure skip, and regenerate the bundled scripts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Shai Revivo <srevivo@redhat.com>
Summary
ready-to-codelabelThe authoritative dispatch-side guard for the remaining read/write race is in fullsend-ai/fullsend#6876.
Testing
PATH=/opt/homebrew/bin:$PATH make check-bundlePATH=/opt/homebrew/bin:$PATH make lintSCRIPT_TEST_TARGET=source bash scripts/post-triage-test.shSCRIPT_TEST_TARGET=bundled bash scripts/post-triage-test.shThe focused source and bundled suites pass. The broader local
make script-testmatrix reached the gitlint test and stopped becausegitlintis not installed locally; CI runs the dependency-equipped matrix.Fixes fullsend-ai/fullsend#6156