From b38e1c3f1dd0f6d8d8643d626cfb3f2aeca97fd5 Mon Sep 17 00:00:00 2001 From: panicboat Date: Sun, 25 Oct 2026 01:45:53 +0900 Subject: [PATCH] docs(agents): fall back to the account .github repository templates GitHub uses the templates of the account .github repository for a repository that has none of its own. Agents pass the body with --body and read the template from the working tree, so they miss a template that lives only in .github. Claude-Session: https://claude.ai/code/session_01R7jQZQj1VyeBbYR7P1ssV7 Signed-off-by: panicboat --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index 8babe5d..716e73f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -94,6 +94,7 @@ - 作業ブランチが一区切りしたら push し、**Draft PR を作成して可視化する**(`gh pr create --draft`。Draft 以外で作らない) - PR のタイトル(件名)は英語で記述する - PR・issue を作成する前に、リポジトリのテンプレート(`.github/pull_request_template.md`・`.github/ISSUE_TEMPLATE/` 等)の有無を確認し、あればその見出し構成とコメントの指示どおりに本文を書く(`gh pr create --body`・`gh issue create --body` ではテンプレートが自動適用されないため) +- リポジトリに同じ種類のテンプレートが無い場合は、owner の `.github` リポジトリのテンプレート(`gh api repos//.github/contents/`)の有無を確認し、あればそれに従う(GitHub は自前のテンプレートを持たないリポジトリに `.github` リポジトリのテンプレートを既定として使うため) - issue のタイトルにも、PR と同じ Conventional Commits の type(`feat:`・`fix:`・`perf:`・`refactor:`・`docs:`・`ci:`・`chore:` 等)を付ける - PR・issue の本文は 1 文ごとに改行する。箇条書きの項目は要点 1 文だけにし、理由・補足はその下の階層の項目に分ける