Skip to content

Commit

Permalink
Fix plugin lookup for extended configs (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukiffer committed Apr 15, 2024
1 parent 966e7a7 commit 8f43c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function getIssueBaseUrl() {
// Check if it exists in the semantic-release config
if (await exists('.releaserc.json')) {
const releaseConfig = JSON.parse(await readFile('.releaserc.json', 'utf-8'));
const notesConfig = releaseConfig.plugins.find(x => x[0] === '@semantic-release/release-notes-generator');
const notesConfig = releaseConfig.plugins?.find(x => x[0] === '@semantic-release/release-notes-generator');

if (notesConfig && notesConfig[1].issueUrlPrefix) {
return notesConfig[1].issueUrlPrefix.replace(/\/$/, '');
Expand Down

0 comments on commit 8f43c76

Please sign in to comment.