-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb8e43b
commit e37c3ee
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# github-comment | ||
|
||
## github-commentとは | ||
|
||
> [作者さんのブログ](https://zenn.dev/shunsuke_suzuki/articles/improve-cicd-with-github-comment) | ||
> [使い方](https://github.com/suzuki-shunsuke/github-comment?tab=readme-ov-file) | ||
- CIの結果を見やすくするために整形してコメントに投稿できる。 | ||
|
||
## install | ||
|
||
正直ローカルにいれるというよりはGitHub Actionsから実行するのが良さそうだが一応インストール手順を書いておく。 | ||
|
||
```shell | ||
aqua g -i suzuki-shunsuke/github-comment | ||
aqua i -l | ||
``` | ||
|
||
## 使い方 | ||
|
||
ブランチがリモート(github.com)に存在しないとエラーが出る。 | ||
|
||
```shell | ||
github-comment post -k test | ||
opts is invalid: org is required | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
# skip_no_token: true | ||
# base: | ||
# org: | ||
# repo: | ||
# vars: | ||
# foo: bar | ||
# zoo: | ||
# foo: hello | ||
# templates: | ||
# header: "# {{.Org}}/{{.Repo}}" | ||
# post: | ||
# default: | ||
# template: | | ||
# {{template "header" .}} | ||
# {{.Vars.foo}} {{.Vars.zoo.foo}} | ||
# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} | ||
# hello: | ||
# template: hello | ||
# exec: | ||
# hello: | ||
# - when: true | ||
# template: | | ||
# {{template "header" .}} | ||
# {{.Vars.foo}} {{.Vars.zoo.foo}} | ||
# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} | ||
# exit code: {{.ExitCode}} | ||
# | ||
# ```console | ||
# $ {{.Command}} | ||
# ``` | ||
# | ||
# Stdout: | ||
# | ||
# ``` | ||
# {{.Stdout}} | ||
# ``` | ||
# | ||
# Stderr: | ||
# | ||
# ``` | ||
# {{.Stderr}} | ||
# ``` | ||
# | ||
# CombinedOutput: | ||
# | ||
# ``` | ||
# {{.CombinedOutput}} | ||
# ``` | ||
# template_for_too_long: | | ||
# {{template "header" .}} | ||
# {{.Vars.foo}} {{.Vars.zoo.foo}} | ||
# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}} | ||
# exit code: {{.ExitCode}} | ||
# | ||
# ```console | ||
# $ {{.Command}} | ||
# ``` |