Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(dev-lead): add chatgpt-codex-connector[bot] to TRUSTED_BOTS + fix pre-existing test failures #291
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
Uh oh!
There was an error while loading. Please reload this page.
fix(dev-lead): add chatgpt-codex-connector[bot] to TRUSTED_BOTS + fix pre-existing test failures #291
Changes from all commits
e223d204544bea229c300File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
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.
The
ghstub uses pattern matching on the full argument string ($*) to detectcopilotcalls. As correctly identified in other parts of this PR (e.g.,test_fix_reviews.bats), the prompt text passed via the-pflag can contain arbitrary strings likeissues/42/comments, which would cause a false positive match in the preceding cases. It is safer to check the first argument ($1) specifically for thecopilotcommand before falling back to pattern matching on the full argument string.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.
This stub implementation is inconsistent with the more robust pattern introduced elsewhere in this file (e.g., at line 177). Matching
*"copilot"*against the full argument string is risky because the prompt text might contain patterns that match other cases (likepulls/at line 226). Please use the$1check at the top of the stub to reliably identify the command.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.
Similar to the issue at line 228, this stub should use a
$1check forcopilotat the top of the script to avoid false positives from the prompt text matching other patterns in thecaseblock.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.
The
_get_envhelper logic for handling multiline heredocs is duplicated acrosstest_intent_ci.batsandtest_intent_issue.bats, but remains un-updated intest_intent_reviews.bats. While functional, this duplication makes maintenance harder. Consider centralizing this helper if the test framework allows, or at least ensuring consistency across all intent test files to avoid confusing behavior when inspectingINTENT_CONTEXT.Uh oh!
There was an error while loading. Please reload this page.