Skip to content

Commit

Permalink
Added links to release description commit list
Browse files Browse the repository at this point in the history
Each commit summary/description will link to the commit
  • Loading branch information
ModEngineer committed Apr 14, 2022
1 parent 8cd939b commit 69b340a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ jobs:
if (hashes != [""]) {
textBody += " Commit messages and descriptions since the last release are shown below:"
for (const hash of hashes) {
textBody += '\n- ' + child_process.execSync(`git log --pretty='format:%s' -n 1 ${hash}`, {cwd: process.env.GITHUB_WORKSPACE}).toString()
textBody += '\n- [' + child_process.execSync(`git log --pretty='format:%s' -n 1 ${hash}`, {cwd: process.env.GITHUB_WORKSPACE}).toString()
let commitBodyLines = child_process.execSync(`git log --pretty='format:%b' -n 1 ${hash}`, {cwd: process.env.GITHUB_WORKSPACE}).toString().split('\n')
for (const line of commitBodyLines) {
textBody += '\n ' + line
}
textBody += `](https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${hash})`
}
}
}
Expand Down

0 comments on commit 69b340a

Please sign in to comment.