Skip to content

Commit

Permalink
fixes autochangelog erroring on an empty pr body https://github.com/t…
Browse files Browse the repository at this point in the history
…gstation/tgstation/actions/runs/8977813552/job/24657813451 the changelog workflow errors when theres nothing in the pr body, which causes a useless notification. now it should be fixed (#83122)
  • Loading branch information
Kylerace committed May 7, 2024
1 parent b755a2b commit 135bf59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/pull_request_hooks/changelogParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ function parseChangelogBody(lines, openTag) {
}

export function parseChangelog(text) {
if(text == null) {
return undefined;
}
const lines = text.split("\n").map((line) => line.trim());

for (let index = 0; index < lines.length; index++) {
Expand Down

0 comments on commit 135bf59

Please sign in to comment.