fix(source-control): refuse autonomous resolve on own PRs - #2451
Conversation
Add fetch_pull_request_author and fail closed when --autonomous or --independent-resolver targets a PR whose author is in --self-logins. Interactive modes are unchanged. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 1m 25s —— View job Security Review — PR #2451Todo list
Result: No security issues foundReviewed the two implementation files ( Things I specifically checked and found sound:
Test additions ( No CRITICAL, IMPORTANT, or SUGGESTION findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ecc4dcce26
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Claude finished @kyle-sexton's task in 4m 31s —— View job Claude's reviewTodo list
SummaryThe fix itself is sound: Two things worth a look before merge:
Neither is a correctness bug in the shipped behavior; both are maintainability/coverage gaps worth closing given this skill's emphasis on the guard contract as an enforced, citable source of truth. Test plan (author-claimed, not independently run in this review — sandbox denied running |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Summary
fetch_pull_request_authorand fail closed when--autonomousor--independent-resolvertargets a PR whose author is in--self-loginsCloses #1287
Test plan
python3 -m pytest plugins/source-control/skills/babysit-prs/scripts/tests/test_babysit_resolve_thread.py(109 passed)Related
N/A