0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

github-comment を使ってみた

Last updated at Posted at 2025-04-16

github-comment を使ってみた

permissions

.github/workflows/somethig.yml
permissions:
  pull-requests: write   

が要りそう

個人的に気になったところ

var オプション

   --var value [ --var value ]            template variable

--var で,k:v フォーマットであることがわからなかったけど,エラーですぐわかった.

The variable can be passed with the option -var <variable name>:<variable value> too.

ここにも書いてあった

Meta.Vars の埋め込み

From github-comment v4, only variables specified by embedded_var_names are embedded into the comment.

これに気付いてなかった

.github-comment.yml
exec:
  defaut:
    embedded_var_names:
      - something_key

when: ExitCode != 0

使っていたコマンドの所為なんだけど,ステータスコードで失敗か判定できてなかった.(=コメントされなかった)

.github-comment.yml
exec:
  defaut:
    when: true

Refs

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?