From b2e2755f939c926a599361674b7e32ab2567a3c3 Mon Sep 17 00:00:00 2001 From: Nicolas Hidemaru Ogoshi <40846197+Nicolas0315@users.noreply.github.com> Date: Mon, 5 Oct 2026 09:38:15 +0900 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20Issue=20=E3=83=95=E3=82=A9=E3=83=BC?= =?UTF-8?q?=E3=83=A0=E3=80=8C=E4=BD=9C=E6=A5=AD=E3=80=8D=E3=81=A8=E3=80=81?= =?UTF-8?q?PR=20=E3=81=8B=E3=82=89=20Issue=20=E3=82=92=E9=96=89=E3=81=98?= =?UTF-8?q?=E3=82=8B=20Closes=20=E6=AC=84=E3=82=92=E6=97=A2=E5=AE=9A?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .github/ISSUE_TEMPLATE/task.yml: As-Is・To-Be・実行・証拠に分けて書く Issue フォーム - PR テンプレートの「なぜ」に `Closes #番号` を置く(merge で Issue が閉じ、Project の状態も進む) - README の適用範囲の表に Issue テンプレートを追加し、リポ側に ISSUE_TEMPLATE があるとここは使われない点を明記 Co-Authored-By: Claude Opus 5.5 --- .github/ISSUE_TEMPLATE/task.yml | 36 ++++++++++++++++++++++++++++++++ .github/pull_request_template.md | 4 +++- README.md | 7 ++++--- 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/task.yml diff --git a/.github/ISSUE_TEMPLATE/task.yml b/.github/ISSUE_TEMPLATE/task.yml new file mode 100644 index 0000000..ce21c80 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/task.yml @@ -0,0 +1,36 @@ +name: 作業 +description: 開発・調査・運用の作業を、事実(As-Is)・目標(To-Be)・実行・証拠に分けて記録する +body: + - type: markdown + attributes: + value: | + 同じ作業の issue が既に無いかを検索してから作成してください。 + 大きな作業は親 issue(目的と受入条件)と sub-issue(末端の作業)に分けます。 + - type: textarea + id: as-is + attributes: + label: As-Is(現状) + description: 観測日時、対象環境、source の URL と commit/版、確認方法。現物で確認したもの・履歴からの参考・未検証を区別して書きます。 + validations: + required: true + - type: textarea + id: to-be + attributes: + label: To-Be(目標) + description: 目標、対象と対象外、受入条件。提案と、人が決めた内容を分けて書きます。 + validations: + required: true + - type: textarea + id: execution + attributes: + label: 実行 + description: 担当、次の一手、実際に阻んでいる依存、関連 issue、PR。依存は blocked-by、作業の分解は sub-issue、関連は参照リンクで区別します。 + validations: + required: false + - type: textarea + id: evidence + attributes: + label: 証拠 + description: 実装の commit/PR、実行した検証と環境・結果、未実行の項目、公開版と公開日時を別々に書きます。コード作成・build 成功・実画面での確認・業務受入・公開は、同じ完了として扱いません。 + validations: + required: false diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 1fd69b9..5922dc9 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -2,7 +2,9 @@ ## なぜ - + +Closes # ## どう確かめたか diff --git a/README.md b/README.md index 7acf753..b69c7f9 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,13 @@ ここに置いたファイルは、同じ organization が所有するリポジトリのうち、**自前の同名ファイルを持たないもの** に自動で適用されます。GitHub の仕様上、この機能を有効にするには本リポジトリが public である必要があります。 -適用条件と配置場所は GitHub の[既定コミュニティファイルの説明](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file)に従います。ここでは `.github/pull_request_template.md` を使います。 +適用条件と配置場所は GitHub の[既定コミュニティファイルの説明](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file)に従います。ここでは `.github/pull_request_template.md` と `.github/ISSUE_TEMPLATE/` を使います。 | ファイル | 適用範囲 | | --- | --- | | [`SECURITY.md`](./SECURITY.md) | 脆弱性の報告経路と対応の目安 | -| [`.github/pull_request_template.md`](./.github/pull_request_template.md) | PR 本文の既定(何を・なぜ・どう確かめたか)。自前の PR テンプレートを持たないリポで、PR 作成時に本文へ入る | +| [`.github/pull_request_template.md`](./.github/pull_request_template.md) | PR 本文の既定(何を・なぜ・どう確かめたか)と、Issue を閉じる `Closes #番号`。自前の PR テンプレートを持たないリポで、PR 作成時に本文へ入る | +| [`.github/ISSUE_TEMPLATE/task.yml`](./.github/ISSUE_TEMPLATE/task.yml) | Issue フォーム「作業」(As-Is・To-Be・実行・証拠)。自前の `.github/ISSUE_TEMPLATE/` を持たないリポで、Issue 作成時に選べる | ## 編集にあたって @@ -24,4 +25,4 @@ ## 個別リポジトリで上書きしたいとき -そのリポジトリのルートに `SECURITY.md` を置けば、そちらが優先されます(PR テンプレートも同じで、リポ側に `.github/pull_request_template.md` などがあればそちらが使われます)。社内情報を含む完全版を使いたい場合はこの方法を取ってください。 +そのリポジトリのルートに `SECURITY.md` を置けば、そちらが優先されます(PR テンプレートも同じで、リポ側に `.github/pull_request_template.md` などがあればそちらが使われます。Issue テンプレートは、リポ側に `.github/ISSUE_TEMPLATE/` があると、ここのものは一つも使われません)。社内情報を含む完全版を使いたい場合はこの方法を取ってください。 From f0eed261175e403a5bf6849ec4598aa2e262e545 Mon Sep 17 00:00:00 2001 From: Nicolas Hidemaru Ogoshi <40846197+Nicolas0315@users.noreply.github.com> Date: Mon, 5 Oct 2026 09:41:09 +0900 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E9=83=A8=E5=88=86=E7=9A=84=E3=81=AA?= =?UTF-8?q?=20PR=20=E3=81=AF=20Refs=20=E3=81=AB=E3=81=99=E3=82=8B=E6=97=A8?= =?UTF-8?q?=E3=82=92=20PR=20=E3=83=86=E3=83=B3=E3=83=97=E3=83=AC=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=81=AB=E6=9B=B8=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .github/pull_request_template.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 5922dc9..a11c853 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -2,8 +2,9 @@ ## なぜ - + Closes # ## どう確かめたか From ae3264dd90263803b851a3115cf0e2132020a435 Mon Sep 17 00:00:00 2001 From: Nicolas Hidemaru Ogoshi <40846197+Nicolas0315@users.noreply.github.com> Date: Mon, 5 Oct 2026 09:45:08 +0900 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=E5=88=A5=E3=83=AA=E3=83=9D=E3=81=AF?= =?UTF-8?q?=20=E7=B5=84=E7=B9=94=E5=90=8D/=E3=83=AA=E3=83=9D=E5=90=8D#?= =?UTF-8?q?=E7=95=AA=E5=8F=B7=20=E3=81=A7=E6=9B=B8=E3=81=8D=E3=80=81Projec?= =?UTF-8?q?t=20=E3=81=AE=E7=8A=B6=E6=85=8B=E6=9B=B4=E6=96=B0=E3=81=AF?= =?UTF-8?q?=E8=87=AA=E5=8B=95=E5=8C=96=E3=81=8C=E6=9C=89=E5=8A=B9=E3=81=AA?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AB=E9=99=90=E3=82=8B=E3=81=A8=E6=98=8E?= =?UTF-8?q?=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copilot の指摘を反映。 Co-Authored-By: Claude Opus 5.5 --- .github/pull_request_template.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index a11c853..529a55f 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -3,7 +3,8 @@ ## なぜ Closes # From 6eb98219fee37857369a4f5855f8e6ad44ce3003 Mon Sep 17 00:00:00 2001 From: Nicolas Hidemaru Ogoshi <40846197+Nicolas0315@users.noreply.github.com> Date: Mon, 5 Oct 2026 10:13:00 +0900 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20=E9=9D=9E=E5=85=AC=E9=96=8B=E3=83=AA?= =?UTF-8?q?=E3=83=9D=E3=81=A7=E3=81=AF=E3=83=95=E3=82=A9=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=81=AE=E5=BF=85=E9=A0=88=E3=81=8C=E5=8A=B9=E3=81=8B=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=81=AE=E3=81=A7=E3=80=81As-Is=20=E3=81=A8=20To-Be?= =?UTF-8?q?=20=E3=82=92=E5=BF=85=E3=81=9A=E6=9B=B8=E3=81=8F=E3=82=88?= =?UTF-8?q?=E3=81=86=E6=98=8E=E8=A8=98=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Codex の指摘を反映。 Co-Authored-By: Claude Opus 5.5 --- .github/ISSUE_TEMPLATE/task.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/ISSUE_TEMPLATE/task.yml b/.github/ISSUE_TEMPLATE/task.yml index ce21c80..436ce8b 100644 --- a/.github/ISSUE_TEMPLATE/task.yml +++ b/.github/ISSUE_TEMPLATE/task.yml @@ -6,6 +6,7 @@ body: value: | 同じ作業の issue が既に無いかを検索してから作成してください。 大きな作業は親 issue(目的と受入条件)と sub-issue(末端の作業)に分けます。 + **As-Is と To-Be は必ず書いてください。** 非公開リポでは、フォームの必須の検査が効かず空のまま送信できてしまいます。 - type: textarea id: as-is attributes: