Use commit status as Bitbucket Name - #1357
Open
zanarellidev wants to merge 2 commits into
Open
Conversation
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
force-pushed
the
fix/bitbucket-commit-status-name
branch
from
August 3, 2026 03:26
33d7fb7 to
4774a92
Compare
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
formatNameAndDescriptionfor the visibleName, sospec.commitStatusExpronly influenced the hashedKey.CommitStatusasName, matching GitHub/GitLab/Azure DevOps.bitbucketserver.go); fixed the same way, keeping the Server UIName [description]suffix.Test plan
go test -count=1 -run TestBitbucket_Post_UsesCommitStatusAsName ./internal/notifier/go test -count=1 -run TestBitbucketServer_Post_UsesCommitStatusAsName ./internal/notifier/kustomization/hello-world [reason]); pass-after with fixgo test -count=1 ./internal/notifier/