Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

git notes in BitBucket Web Interface

AntonioVecchio March 30, 2019

Hello all,
whenever I push notes I see them online in BitBucket Web Interface as specific commits, however

  • for each note is not shown the related namespace,
  • for each note is not shown the linked commit,
  • for each commit is not shown the number of linked notes (like tags).

Are these real issues or misconfigurations of mine or not implemented features?
Kind Regards.
Antonio

2 answers

2 accepted

0 votes
Answer accepted
AntonioVecchio April 1, 2019

Hi Stephen, maybe my question was not cleared, now I provide an explicit example.

Please, suppose the following list of command just executed:

git init

git remote add "origin" "bla, bla, bla"

git add .

git commit --branch -m "master, first commit"

git notes --ref="commits" add -m "first note"

git notes --ref="furtherDetails" add -m "second note"

git push -u "origin" "master"

git push "origin" "refs/notes/*"

Now, if you check BitBucket graphical rendering of commits, you could see that notes are painted as nodes separated by the ordinary code node commit, with no explicit link among notes nodes and the related commit node.

If you suppose some different notes nodes, sometimes within the same notes' namespaces, for more than one code commit, you can understand how much could be useful to "see" graphically notes commits' nodes linked with the related code commit node.

My question was: is there any way in BitBucket to "see" these links? Via command line locally I can execute the command

git log --oneline --stat --graph --show-notes="*" --full-history

that provides no graphical link as I requested, however it at least provides logical links (by grouping notes in each code commit) but ... in BitBucket Web Interface?

Kind Regards.

Antonio

Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 2, 2019

Hello Antonio,

Thank you for the clarification and a walkthrough of your workflow, this really helps to paint a picture of what you need and how you’re inputting the notes.

Upon further review, as this function is not native to Bitbucket, there is an add-on which brings in support for tag details and git notes within Bitbucket. I was only able to find one add-on which accomplished this. You may find this add-on at Tag Details And Git Notes.

We would suggest you test this add-on within your developer/stagging instance first to ensure there are no interruptions to your production instance.

Regards,
Stephen Sifers

Like Ben Tomasik likes this
AntonioVecchio April 2, 2019

Thank you very much! :-)

Antonio

Like Stephen Sifers likes this
0 votes
Answer accepted
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2019

Hello Antonio and welcome to Community!

Within Bitbucket cloud you’re able to use Smart commits to include additional information within your commit. Within a smart commit you’re able to send:

  • Comments on issues
  • Time tracking records
  • Jira Software transition triggers

Additional information on this may be found at Use Smart Commits.

If smart commits do not work for you, could you please elaborate more on where and which notes you want to include during a commit?

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events