Forums

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

Linking a commit from a pull request

Cerno B May 10, 2019

I would like to link a specific commit from the Pull Request's Details view.

Now I could just add the hash, like so:

2d887519b1

This will link to the commit, but not inside the Pull Request view, so I get this:

https://server/projects/project/repos/repo/commits/2d887519b1

But I want this:

https://server/projects/project/repos/repo/pull-requests/current_pr/commits/2d887519b1

I can get what I want by adding a link like so:

[2d887519b1](commits/2d887519b1)

This will give me the link that I want, however I was hoping that there was a shorter way of achieving the same thing.

If there is no such feature, I think it would be helpful to have syntax like one of the following that would automatically resolve to the second link:

commit-2d887519b1
c-2d887519b1
pr:2d887519b1

Or something similarly short and snappy. At the very least some syntax that would prevent having to write the hash two times, like I have to do with my current solution. I guess it would have to be a solution that fits inside the current options of linking to different PRs etc.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events