feat(bitbucket): add guarded cloud PR decline - #1194
Conversation
|
Hi @potiuk — another narrow #606 follow-up, continuing the Cloud PR mutation sequence. This adds guarded Focused decline tests, the full Bitbucket suite, Ruff, mypy, prek hooks, and Would appreciate your review when you get a chance. |
Drop 'declining,' from the out-of-scope write list. The same paragraph now both claimed decline as implemented and listed it as out of scope, and the command table two sections down lists 'pr decline <id>' as a supported Cloud write. Generated-by: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01M7zttXzAM1wbTdBAjJCECv
|
Pushed a one-line fixup rather than round-tripping: dropped |
Summary
Adds a guarded Bitbucket Cloud pull-request decline mutation to the existing Bitbucket bridge.
This PR adds:
magpie-bitbucket pr decline <id>The command operates on Bitbucket Cloud only. Bitbucket Data Center decline writes remain explicitly unsupported in this PR.
Implementation
POST.pr decline <id>.Safety / write-path discipline
Decline remains an explicit caller-confirmed mutation.
The bridge does not decline pull requests automatically. The calling skill is responsible for obtaining explicit user confirmation before invoking the command.
Tests
Added coverage for:
POSTwith no request bodypr declinedispatchValidation completed successfully:
git diff --checkScope
This intentionally remains a narrow follow-up to #606.
It does not add:
post_review