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?

個人的「質はともかく継続する」25日目です

github issueのtemplateでいろいろできる

github issueにはtemplateを作る機能があります。
通常のtemplateと、実験的な機能のtemplateが用意されています。
実験的な機能のほうを簡単に作ってみます。

公式を参考にします。

ソースファイルを用意する

.github/ISSUE_TEMPLATEの配下に、yaml形式のファイルを作成します。
ISSUE_TEMPLATEフォルダがなければ、作成してください。

今回はdropdownとinput,textareaを追加してみます。

name: issueテンプレート
description: issueテンプレート
title: "内容:"
labels: ToDo
body:
  - type: markdown
    attributes:
      value: |
        issueテンプレ
  - type: dropdown
    id: kudamono
    attributes:
      label: くだもの
      description: 
      options:
        - もも
        - りんご
        - ばなな
        - みかん
      default: 0
  - type: input
    id: yasai
    attributes:
      label: 好きな野菜を入れてください
      placeholder: "ほうれんそう"
  - type: textarea
    id: receipe
    attributes:
      label: レシピ
      description: 例:もものタルト

issueから、今回つくったテンプレートを選びます。

image.png

いい感じにできました。
image.png

まだベータ版ですが、色々と使えて便利そうです。

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?