Skip to content

Commit

Permalink
feat: add message when changelog is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed May 22, 2023
1 parent 9d0639d commit 5d456c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ runs:
const parseCommit = (message) => message.split('\n')[0].replace('#', `${fullRepoName}#`);
const changelog = compare.data.commits.map(commit => `* ${parseCommit(commit.commit.message)} ([commit](${commit.html_url}))`).join('\n');
return changelog;
return changelog ?? '_No changes found_';
} catch {
return 'No changes found or failed';
}

0 comments on commit 5d456c1

Please sign in to comment.