diff --git a/__tests__/fixtures/pull_request/github/comment_create_body_expected.js b/__tests__/fixtures/pull_request/github/comment_create_body_expected.js index 7c21389..4d4f61b 100644 --- a/__tests__/fixtures/pull_request/github/comment_create_body_expected.js +++ b/__tests__/fixtures/pull_request/github/comment_create_body_expected.js @@ -9,7 +9,7 @@ By commenting on this PR with: \`:rocket:[]\`, e.g. | Comment | Description | More info | | --- | --- | --- | | \`:rocket:[a-pipeline]\` | | [:information_source:](https://example.com/does-templating-work?COMMITISH=c0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffe&ORG=some-org&REPO=some-repo "See more information") | -| \`:rocket:[some-pipeline]\` | | [:heavy_plus_sign:](https://github.com/new/master?filename=.buildkite%2Fpipeline%2Fdescription%2Fsome-org%2Fsome-pipeline.md&value=%23+some-pipeline%0A%0A%5BDocument+some-pipeline%27s+RocketBot+options+here%5D "Add more information") | +| \`:rocket:[some-pipeline]\` | | [:heavy_plus_sign:](https://github.com/some-org/some-repo/new/master?filename=.buildkite%2Fpipeline%2Fdescription%2Fsome-org%2Fsome-pipeline.md&value=%23+some-pipeline%0A%0A%5BDocument+some-pipeline%27s+RocketBot+options+here%5D "Add more information") | | \`:rocket:[some-pipeline-lite]\` | This is a proper description with a \\| pipe | [:information_source:](https://github.com/some-org/some-repo/blob/master/.buildkite/pipeline/description/some-org/some-pipeline-lite.md "See more information") | _Note: you can pass [custom environment variables](https://github.com/canva-public/rocketbot/blob/main/docs/guides/pass-in-variables.md) to some builds._ diff --git a/src/initial_comment.ts b/src/initial_comment.ts index f529a26..e790264 100644 --- a/src/initial_comment.ts +++ b/src/initial_comment.ts @@ -154,8 +154,8 @@ function getDocumentationCreationLink( pipeline: Pipeline, ) { const url = new URL( - `/new/${prData.head.repo.default_branch}`, - `https://github.com/${prData.head.repo.full_name}`, + `/${prData.head.repo.full_name}/new/${prData.head.repo.default_branch}`, + `https://github.com`, ); url.searchParams.append( 'filename',