Skip to content

Commit

Permalink
Fix undefined PR
Browse files Browse the repository at this point in the history
  • Loading branch information
blarfoon committed Nov 5, 2021
1 parent efd3bc6 commit 3f5e1cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/uploadRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const main = async () => {
if (!e?.advanced?.cm || !e?.header || !e?.content) {
continue;
}
const prSplit = (e?.advanced?.pr || '').split('/');
const prSplit = e?.advanced?.pr && e?.advanced?.pr.split('/');
const advanced =
` ([${e?.advanced?.cm}](https://github.com/gorilla-devs/GDLauncher/commit/${e?.advanced?.cm})` +
`${
prSplit.length
prSplit
? ` | [#${e?.advanced.pr}](https://github.com/gorilla-devs/GDLauncher/pull/${prSplit[0]}` +
`${prSplit?.[1] ? `/commits/${prSplit[1]}` : ''})`
: ''
Expand Down

0 comments on commit 3f5e1cb

Please sign in to comment.