Forums

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

Clicking on a commit in a pull request opens a commit from a totally different PR!

Peter Miller
Contributor
September 17, 2024

Steps:

  1. Open the pull request
  2. On the overview tab, click on one of the commit hashes
  3. It opens the files-changed tab but with a completely different set of files that do not belong to this PR

Note:

  • Once I am on the files-changed tab, refreshing the browser page (F5) does not fix the situation. The wrong files continue to be shown for the PR.
  • The PR title (just below the breadcrumbs) remains unchanged the whole time, regardless of which tab is open
  • If I restart from step 1 and do not do steps 2 & 3, but instead if I navigate to the files-changed tab by clicking on the tab element (id="pull-request-tabs-1") then it loads the correct files for the PR and everything works as it should.

PR overview page:

overview.png

Incorrect files-changed tab reached from steps 2 & 3:

files-changed-wrong.png

go back to step 1 and click the files-changed tab:

files-changed-correct.png

 

1 answer

1 accepted

2 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 19, 2024

Hello @Peter Miller ,

and thanks for reaching out to the Community! 

When you click on a commit in the Pull Request Overview tab, the page will redirect you to the Files changed tab and filter the diff to only that single commit. This is the reason why you see less files changed, because the diff in this case is not considering all the commits in the pull request, but that single commit you have clicked.

To view the diff of all the commits, you can click on the dropdown and select All changes, like in the below example : 

Screenshot 2024-09-19 at 2.09.51 PM.png

That dropdown enables you to see the different across individual commits, or a range of commits you select. It also has the option to show All changes, which will make the diff considering all the commits that are part of that pull request.

I hope that helps to clarify!

Thank you, @Peter Miller !

Patrik S

Peter Miller
Contributor
September 19, 2024

ah that makes sense. thanks.

i found the reason i'm seeing a commit from a different PR inside this PR is that the commit is a merge from the master branch into this branch

Like Patrik S likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events