Skip to content

Use commit status as Bitbucket Name - #1357

Open
zanarellidev wants to merge 2 commits into
fluxcd:mainfrom
zanarellidev:fix/bitbucket-commit-status-name
Open

Use commit status as Bitbucket Name#1357
zanarellidev wants to merge 2 commits into
fluxcd:mainfrom
zanarellidev:fix/bitbucket-commit-status-name

Conversation

@zanarellidev

@zanarellidev zanarellidev commented Aug 1, 2026

Copy link
Copy Markdown

Summary

  • Bitbucket Cloud commit status updates used formatNameAndDescription for the visible Name, so spec.commitStatusExpr only influenced the hashed Key.
  • Use the configured CommitStatus as Name, matching GitHub/GitLab/Azure DevOps.
  • Same gap existed in Bitbucket Server (bitbucketserver.go); fixed the same way, keeping the Server UI Name [description] suffix.
  • Fixes Bitbucket commit status name not applied #1268

Test plan

  • go test -count=1 -run TestBitbucket_Post_UsesCommitStatusAsName ./internal/notifier/
  • go test -count=1 -run TestBitbucketServer_Post_UsesCommitStatusAsName ./internal/notifier/
  • Fail-before on unmodified Server code (Name was kustomization/hello-world [reason]); pass-after with fix
  • go test -count=1 ./internal/notifier/

Bitbucket Cloud used formatNameAndDescription for the visible
commit status Name, so commitStatusExpr only affected the hashed
Key. Use CommitStatus for Name like GitHub/GitLab/Azure DevOps.

Signed-off-by: zanarelli <zanarelli.dev@gmail.com>
Same gap as Bitbucket Cloud for issue 1268: Name came from
formatNameAndDescription while commitStatusExpr only fed the Key.
Keep the Server UI description suffix on Name.

Signed-off-by: zanarelli <zanarelli.dev@gmail.com>
@zanarellidev
zanarellidev force-pushed the fix/bitbucket-commit-status-name branch from 33d7fb7 to 4774a92 Compare August 3, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bitbucket commit status name not applied

1 participant