Skip to content

Commit 42298cf

Browse files
authored
feat: add it.links.run placeholder (#4)
1 parent d3e8cf0 commit 42298cf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ We use [squirrelly](https://squirrelly.js.org/) as the templating engine with `[
4444
- `it.repository`: The shorthand name for the repo (e.g., `singlestone/commit-deploy-slack-action`)
4545
- `it.links.commitSha`: Link to the commit that triggered this action.
4646
- `it.links.repository`: Link to the repository that triggered this action.
47+
- `it.links.run`: Link to the GitHub Actions run that triggered this action.
4748

4849
### Additional placeholders
4950

src/template-message.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ export const templateMessage = (params: TemplateMessageParams): string => {
1414
"/",
1515
),
1616
repository: [params.linkRoot, repository].join("/"),
17+
run: [
18+
params.linkRoot,
19+
repository,
20+
"actions",
21+
"runs",
22+
params.github.runId,
23+
].join("/"),
1724
};
1825

1926
return render(

0 commit comments

Comments
 (0)