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?

More than 1 year has passed since last update.

GitHubでのPullRequest等のコメントで時短する

今までIaCのDryRunの実行結果などの長い出力をPullRequestのコメントに記載する際には
以下のような記述を毎回コピペしていました。

<details>
<summary>xxx</summary>

aaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbb
ccccccccccccccccccccc
</details>

これを毎回コピペするのは面倒なので、GitHubのSlashコマンドを使って簡単に記述できるようにしました。

設定方法

  1. Add a saved reply
    github001.png
  2. 内容を入力
    github002.png

使い方

  1. コメントを記述したい箇所に以下のように記述
    github003.png
  2. ”/”を入力すると登録した内容が表示される
    github004.png
  3. 設定した定義ファイルが表示されるので選択
    github005.png
  4. 実際の表示を確認
    github006.png

まとめ

<details><summary>Details</summary>
<p>



</p>
</details> 

という形式でよければ初期設定で登録してあるのでそちらを利用でOKです。

ただ、自分のようにカスタマイズしたい場合は予め登録しておくと便利かもしれません。

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?