Skip to content

Commit 70458e5

Browse files
authored
chore(changesets): integrate commit into link text (#5175)
To have a differentiating link text, we should include the short form of the commit at the end of the "see commit" link text.
1 parent f14c7db commit 70458e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/github/changesets/create-changelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const getReleaseLine = async (changeset, _type, options) => {
1111
// Options are coming from .changeset/config.json
1212
if (changeset.commit && options.owner && options.repo) {
1313
const link = `https://github.com/${options.owner}/${options.repo}/commit/${changeset.commit}`;
14-
returnValue += ` - [see commit](${link})`;
14+
returnValue += ` - [see commit ${changeset.commit.slice(0, 7)}](${link})`;
1515
}
1616

1717
if (futureLines.length > 0) {

0 commit comments

Comments
 (0)