Skip to content

Commit 6bdc2c2

Browse files
committed
fix: Replace PR number with absolute ref URL
1 parent 7837731 commit 6bdc2c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/composer-update.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,8 @@ jobs:
110110
const commitsFormattedList = commits.map((commit) => {
111111
const commitSubject = commit.commit.message.split('\n')[0];
112112
const regex = /\(#(\d+)\)$/s;
113-
const replacedCommitSubject = commitSubject.replace(regex, `(https://github.com/${owner}/${repo}/pull/$1)`);
114-
return `* ${replacedCommitSubject} ([${commit.sha}](${
115-
commit.html_url
116-
}))`;
113+
const replacedCommitSubject = commitSubject.replace(regex, `(https://github.com/Humanoidfr/${repo}/pull/$1)`);
114+
return `* ${replacedCommitSubject} ([${commit.sha}](${commit.html_url}))`;
117115
});
118116
return [...commitsFormattedList];
119117
} catch (e) {

0 commit comments

Comments
 (0)