feat(bitbucket): add read-only PR status fetch#794
Merged
Conversation
Contributor
Author
|
Hi @potiuk , I opened the next Bitbucket follow-up PR for #606. This adds The implementation now uses Bitbucket Cloud’s PR-native statuses endpoint, and for Data Center it fetches the PR source commit and reads build statuses through I also updated the Bitbucket README, spec-loop adapter docs, and labels/capabilities inventory so the documented coverage matches the new behaviour.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
magpie-bitbucket pr status <id>as a read-only Bitbucket change-request status operation.partial-read-onlystatus data with aggregatestatus,checks[], commit, and raw payloads, without adding any write or Pipelines mutation path.Type of change
.claude/skills/<name>/) — eval fixtures updated belowtools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)projects/_template/)prek, workflows, validators)Test plan
prek run --all-filespassesuv run pytest/ruff check/mypypasses(
PYTHONPATH=tools/skill-evals/src python3 -m skill_evals.runner tools/skill-evals/evals/<skill>/)(a regression test for the bug fixed / the behaviour added — see CONTRIBUTING.md)
PYTHONPATH=src uv run --group dev pytest tests/test_bitbucket.pyRFC-AI-0004 compliance
contract:change-request/Coverage: partial-read-onlyadapter without introducing Bitbucket-specific capability naming.Linked issues
Refs #606
Notes for reviewers (optional)
This is the next read-only Bitbucket follow-up after the PR discussion work.
The new command is
magpie-bitbucket pr status <id>. It fetches the PR first to identify the source/latest commit, then reads build/status results for that commit:This intentionally keeps the scope to read-only source-commit status checks. It does not trigger or retry builds, mutate Pipelines, post comments, approve/decline/merge PRs, or attempt full Pipelines workflow coverage.