You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When viewing a pull request's commits in the Pull Requests tree view, each commit currently shows:
Label: commit message
Description: relative date (e.g. "2 months ago")
I'd like an option to include the short SHA (e.g. a1b2c3d) in the commit display, for example:
a1b2c3d commit message as the label, or
short SHA as the description (instead of or in addition to the relative date)
Use Case
When reviewing PRs with many commits, the SHA is essential for cross-referencing with git log, cherry-picking, or discussing specific commits with teammates. Currently I have to hover or expand each commit to find its SHA.
Suggestion
A setting like githubPullRequests.commitLabel with options such as:
message (current behavior, default)
sha-message (e.g. a1b2c3d commit message)
Or alternatively, add the short SHA to the description field alongside the relative date (e.g. a1b2c3d · 2 months ago).
I'd be happy to submit a PR for this if you're open to a community contribution.
Of the two designs proposed, I'd lean toward adding the short SHA to the description field behind a setting, since it doesn't change the default label behavior, but happy to implement whichever direction you'd prefer, or a simpler no-setting version if you'd rather avoid a new config option.
Alex Ross (@alexr00) , I have a PR open for this issue, rebased and tested. I am happy to adjust the approach if the team prefers a different direction. No rush on my end, just wanted to be ready to adjust the PR if needed when it fits a milestone.
Sorry I didn't update on the issue page to make it clear, the pull request was modified upon review to remove the setting and always show the abbreviated sha, I just did a quick sanity check to make sure it definitely works, here is the image below.
Activity
jameswilmiller commentedon Jul 10, 2026
I'd be happy to submit a PR for this if you're open to a community contribution.
Of the two designs proposed, I'd lean toward adding the short SHA to the description field behind a setting, since it doesn't change the default label behavior, but happy to implement whichever direction you'd prefer, or a simpler no-setting version if you'd rather avoid a new config option.
jameswilmiller commentedon Aug 19, 2026
Alex Ross (@alexr00) , I have a PR open for this issue, rebased and tested. I am happy to adjust the approach if the team prefers a different direction. No rush on my end, just wanted to be ready to adjust the PR if needed when it fits a milestone.
vs-code-engineering commentedon Sep 1, 2026
Sharing media and context from merged PR #8840 for verification:
I wasn't sure whether community contributions were being accepted but I took the liberty of making the PR.
Summary:
Initially pull request added a new setting to display abbreviated commit SHAs in the pull request commits tree.
When enabled, commit descriptions are shown in the following format:
49334c4 · 2 days ago
The setting defaults to disabled, so the existing behaviour remains unchanged.
PR was modified upon review to make SHA always show in tree, and the setting was removed.
Changes:
Testing:
manually verified that:
No automated tests were added ( I wasn't sure whether this was required but I am happy to write some if needed ).
I have attached screenshots below,
Screenshots
Setting:

Disabled Setting:

Disabled Setting with no date:

Enabled Setting:

Enabled Setting with no date:

Source PR: #8840
alexr00 commentedon Sep 4, 2026
To verify:
justschen commentedon Sep 4, 2026
Alex Ross (@alexr00) i actually don't see the setting in the latest insiders and on the latest extension version
jameswilmiller commentedon Sep 5, 2026
Justin Chen (@justschen) Hi Justin,
Sorry I didn't update on the issue page to make it clear, the pull request was modified upon review to remove the setting and always show the abbreviated sha, I just did a quick sanity check to make sure it definitely works, here is the image below.
feel free to use this repo as a test, but on my end I can see the abbreviated sha displayed after clicking checkout. https://github.com/jameswilmiller/VSCODE_PR_TEST
alexr00 commentedon Sep 7, 2026
Justin Chen (@justschen) no setting needed, you should be able to just follow the steps in #8701 (comment)!