From fc3f1b8ded810a1263f72d37db9db4e8ce726120 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Fri, 22 Apr 2022 16:36:30 +0200 Subject: [PATCH] Move issue template to yml; add form. (#10576) * Move issue template to yml; add form. Signed-off-by: Julien Pivotto * Address comment Signed-off-by: Julien Pivotto * Add render for versions Signed-off-by: Julien Pivotto * Add placeholders Signed-off-by: Julien Pivotto * More placeholder Signed-off-by: Julien Pivotto * More required: true Signed-off-by: Julien Pivotto * More render: Signed-off-by: Julien Pivotto --- .github/ISSUE_TEMPLATE/bug_report.md | 57 --------------------- .github/ISSUE_TEMPLATE/bug_report.yml | 74 +++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 57 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 8ee3cce79..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve. -title: '' -assignees: '' ---- - - - -**What did you do?** - -**What did you expect to see?** - -**What did you see instead? Under which circumstances?** - -**Environment** - -* System information: - - insert output of `uname -srm` here - -* Prometheus version: - - insert output of `prometheus --version` here - -* Alertmanager version: - - insert output of `alertmanager --version` here (if relevant to the issue) - -* Prometheus configuration file: -``` -insert configuration here -``` - -* Alertmanager configuration file: -``` -insert configuration here (if relevant to the issue) -``` - - -* Logs: -``` -insert Prometheus and Alertmanager logs relevant to the issue here -``` diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..90773a63e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,74 @@ +--- +name: Bug report +description: Create a report to help us improve. +body: + - type: markdown + attributes: + value: | + Thank you for opening a bug report for Prometheus. + + Please do *NOT* ask support questions in Github issues. + + If your issue is not a feature request or bug report use our [community support](https://prometheus.io/community/). + + There is also [commercial support](https://prometheus.io/support-training/) available. + - type: textarea + attributes: + label: What did you do? + description: Please provide steps for us to reproduce this issue. + validations: + required: true + - type: textarea + attributes: + label: What did you expect to see? + - type: textarea + attributes: + label: What did you see instead? Under which circumstances? + validations: + required: true + - type: markdown + attributes: + value: | + ## Environment + - type: input + attributes: + label: System information + description: insert output of `uname -srm` here, or operating system version + placeholder: e.g. Linux 5.16.15 x86_64 + - type: textarea + attributes: + label: Prometheus version + description: Insert output of `prometheus --version` here. + render: text + placeholder: | + e.g. prometheus, version 2.23.0 (branch: HEAD, revision: 26d89b4b0776fe4cd5a3656dfa520f119a375273) + build user: root@37609b3a0a21 + build date: 20201126-10:56:17 + go version: go1.15.5 + platform: linux/amd64 + - type: textarea + attributes: + label: Prometheus configuration file + description: Insert relevant configuration here. Don't forget to remove secrets. + render: yaml + - type: textarea + attributes: + label: Alertmanager version + description: Insert output of `alertmanager --version` here (if relevant to the issue). + render: text + placeholder: | + e.g. alertmanager, version 0.22.2 (branch: HEAD, revision: 44f8adc06af5101ad64bd8b9c8b18273f2922051) + build user: root@b595c7f32520 + build date: 20210602-07:50:37 + go version: go1.16.4 + platform: linux/amd64 + - type: textarea + attributes: + label: Alertmanager configuration file + description: Insert relevant configuration here. Don't forget to remove secrets. + render: yaml + - type: textarea + attributes: + label: Logs + description: Insert Prometheus and Alertmanager logs relevant to the issue here. + render: text