Repository navigation
feat(python-cli-parity): detect pull requests in GitLab and Azure - #1772
John-David Dalton (jdalton) wants to merge 1 commit into
Conversation
PR SummaryLow Risk Overview GitHub behavior is preserved but refactored into a multi-provider branch chain with a shared fallback when no provider matches. Adds Vitest coverage for GitHub, GitLab, Azure, and invalid env values, and updates Reviewed by Cursor Bugbot for commit 671c420. Configure here. |
6a86193 to
d811f62
Compare
986de53 to
671c420
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 671c420. Configure here.
| return { | ||
| baseBranch: | ||
| envAsString(environment['SYSTEM_PULLREQUEST_TARGETBRANCH']) || | ||
| undefined, |
There was a problem hiding this comment.
Azure base branch keeps ref prefix
Medium Severity
Azure's SYSTEM_PULLREQUEST_TARGETBRANCH is a full ref such as refs/heads/main, while GitHub's GITHUB_BASE_REF and GitLab's CI_MERGE_REQUEST_TARGET_BRANCH_NAME are bare branch names. Azure baseBranch therefore does not match the other providers, so git lookups and default-branch comparisons against that value miss.
Reviewed by Cursor Bugbot for commit 671c420. Configure here.


GitLab and Azure Pipelines users can run
socket ciwithout translating provider environment variables by hand. This extends the shared pull-request context in SocketDev/socket-cli#1771 with provider detection.