22
15

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 3 years have passed since last update.

githubでissueのテンプレートを作成する方法

Last updated at Posted at 2021-07-30

概要

ポートフォリオ作成にあたり、開発タスクをissueを使って管理することにしたので
issueのテンプレートを作成し、楽にissueをかけるようにしたかった。

作成方法

Settingsへ移動する

まずはissueを作成したいプロジェクトへ移動し、
settings -> Optionsを選択
1.png

テンプレートを作成する準備

FeaturesのIssuesのSet up templatesをクリック
2.png

作成画面

Add template: selectをクリックし、任意のテンプレートを選択する。
3.png

今回はCustom templateを選択します。
4.png

次にPreview and editをクリック
5.png

クリックするとカスタムテンプレートを作成する画面が表示されます。鉛筆横のマークをクリックします。
6.png

編集画面が表示されるので、必要な項目を入力していきます。
今回はTemplate nameAboutTemplate contentを入力します。
8.png

入力が完了したら、右上のPropose changesをクリックします。
8.png

コミットする

Issue Templateをコミットする画面に遷移するので、コミットメッセージを記載して、Commit changesをクリックします。
9.png

これで、概要のリポジトリのIssue Templateが完成です。

使い方

issue作成画面へ移動

issues -> New issue をクリック
10.png

templateを選ぶ

いくつかテンプレートを作成できるので、自分が使いたいテンプレートを選択し、Get startedをクリックします。
11.png

issueを作成する

先ほど作成したIssue templateの内容が書かれています。
12.png

今回作成したテンプレートの内容

まずは作ってみることが先決だと思うので、コピペできるようにテンプレートの内容を置いておきます。
チームや自分の作成したい仕様に合わせて変更してみてください。

// Template name
issue template

// About 
Here is a template for creating an issue

// Template content
## Overview
Please provide an overview of the issue you are creating.
ex) I want to adapt the style of the header.

## Purpose
Describe the purpose of this issue
ex) To style it.

## Task
Break down and manage your tasks.
- [ ] XXXX
- [ ] XXXX
- [ ] XXXX
22
15
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
22
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?