Skip to content

Commit

Permalink
fix: creation link ctd.
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha committed May 12, 2021
1 parent 7548ed2 commit 7a8a3e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ By commenting on this PR with: \`:rocket:[<pipeline>]\`, 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._
Expand Down
4 changes: 2 additions & 2 deletions src/initial_comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7a8a3e9

Please sign in to comment.