Skip to content

Commit dd57a33

Browse files
committed
chore: fix lines lost during rebase
because rebasing was complex the implementation of disableComment parameter had to be fixed.
1 parent 019a20b commit dd57a33

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/index.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,11 @@ async function deployToPreviewChannel(gacFilePath: string, channelId: string) {
133133
setOutput("expire_time", expireTime);
134134
setOutput("details_url", urls[0]);
135135

136-
const urlsListMarkdown =
137-
urls.length === 1
138-
? `[${urls[0]}](${urls[0]})`
139-
: urls.map((url) => `- [${url}](${url})`).join("\n");
140-
141-
if (token && !!context.payload.pull_request && !!octokit) {
136+
if (disableComment === "true") {
137+
console.log(
138+
`Commenting on PR is disabled with "disableComment: ${disableComment}"`
139+
);
140+
} else if (token && !!context.payload.pull_request && !!octokit) {
142141
const commitId = context.payload.pull_request?.head.sha.substring(0, 7);
143142

144143
await postChannelSuccessComment(octokit, context, deployment, commitId);

0 commit comments

Comments
 (0)