Skip to content

Commit 2c99cef

Browse files
authored
Merge branch 'production' into max/gw/update-egress-selectors
2 parents be2b3dc + 3e2ecac commit 2c99cef

File tree

69 files changed

+1887
-648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1887
-648
lines changed

bin/post-preview-url-comment/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ async function run(): Promise<void> {
2121
const ctx = github.context;
2222
const branch = ctx.ref.replace("refs/heads/", "");
2323

24+
const previewUrl = {
25+
branch: `https://${branchToSubdomain(branch)}.preview.developers.cloudflare.com`,
26+
commit: `https://${ctx.sha.slice(0, 8)}.preview.developers.cloudflare.com`,
27+
};
28+
29+
core.info(
30+
`Commit URL: ${previewUrl.commit}\nBranch URL: ${previewUrl.branch}`,
31+
);
32+
2433
core.info(`Finding pull requests for ${ctx.ref}`);
2534

2635
const { data: pulls } = await octokit.rest.pulls.list({
@@ -63,15 +72,6 @@ async function run(): Promise<void> {
6372
core.info(`No existing comment found`);
6473
}
6574

66-
const previewUrl = {
67-
branch: `https://${branchToSubdomain(branch)}.preview.developers.cloudflare.com`,
68-
commit: `https://${ctx.sha.slice(0, 8)}.preview.developers.cloudflare.com`,
69-
};
70-
71-
core.info(
72-
`Commit URL: ${previewUrl.commit}\nBranch URL: ${previewUrl.branch}`,
73-
);
74-
7575
const changedFiles = files
7676
.filter(
7777
(file) =>

0 commit comments

Comments
 (0)