Skip to content

Pull Requests / Commit Message #8701

@janperner-ubnt

Description

@janperner-ubnt

Feature Request

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).

The relevant code is in src/view/treeNodes/commitNode.ts:

this.label = commit.commit.message;
this.description = commit.commit.author?.date ? dateFromNow(commit.commit.author.date) : undefined;
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions