Open2

VS CodeのGitHub Copilot設定をカスタマイズする方法

dehio3dehio3

コミットメッセージのフォーマットの指定

フォーマットは以下の記事を参考
https://zenn.dev/itosho/articles/git-commit-message-2023

いつもブランチの先頭にissue番号を設定しているので以下で意図した設定になった!

    "github.copilot.chat.commitMessageGeneration.instructions": [
          {
            "text": "コミットメッセージのフォーマットは <Type>: <Emoji> #<Issue Number> <Title> で記述してください"
          },
          {
            "text": "Issue Numberはブランチ名の先頭の数字を入れてください"
          },
          {
            "text": "TitleとBodyは日本語で記述してください"
          },
          {
            "text": "リソースの種類ごとの詳細な変更内容を記述してください"
          }
    ]