Skip to content

Commit

Permalink
chore: fix lines lost during rebase
Browse files Browse the repository at this point in the history
because rebasing was complex the implementation of disableComment parameter had to be fixed.
  • Loading branch information
minherz committed May 24, 2024
1 parent 019a20b commit dd57a33
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ async function deployToPreviewChannel(gacFilePath: string, channelId: string) {
setOutput("expire_time", expireTime);
setOutput("details_url", urls[0]);

const urlsListMarkdown =
urls.length === 1
? `[${urls[0]}](${urls[0]})`
: urls.map((url) => `- [${url}](${url})`).join("\n");

if (token && !!context.payload.pull_request && !!octokit) {
if (disableComment === "true") {
console.log(
`Commenting on PR is disabled with "disableComment: ${disableComment}"`
);
} else if (token && !!context.payload.pull_request && !!octokit) {
const commitId = context.payload.pull_request?.head.sha.substring(0, 7);

await postChannelSuccessComment(octokit, context, deployment, commitId);
Expand Down

0 comments on commit dd57a33

Please sign in to comment.