]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
bug_report: use issue forms instead of markdown template
authorJan Macku <jamacku@redhat.com>
Wed, 19 Jul 2023 14:31:11 +0000 (16:31 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 Jul 2023 11:59:10 +0000 (13:59 +0200)
Issue forms allow you to define web-like input forms using YAML
syntax. It allows you to guide the reporter to get the required
information.

Signed-off-by: Jan Macku <jamacku@redhat.com>
Closes #11474

.github/ISSUE_TEMPLATE/bug_report.md [deleted file]
.github/ISSUE_TEMPLATE/bug_report.yml [new file with mode: 0644]

diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644 (file)
index 2c1baec..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve
-title: ''
-labels: ''
-assignees: ''
-
----
-
-<!-- Only file bugs here! Ask questions on the mailing lists https://curl.se/mail/
-
-     SECURITY RELATED? Post it here: https://hackerone.com/curl
-
-     There are collections of known issues to be aware of:
-     https://curl.se/docs/knownbugs.html
-     https://curl.se/docs/todo.html       -->
-
-### I did this
-
-### I expected the following
-
-### curl/libcurl version
-
-[curl -V output]
-
-### operating system
-
-<!-- On Unix please post the output of "uname -a" -->
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644 (file)
index 0000000..3172306
--- /dev/null
@@ -0,0 +1,55 @@
+# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+#
+# SPDX-License-Identifier: curl
+
+name: Bug Report
+description: Create a report to help us improve
+
+body:
+  - type: markdown
+    attributes:
+      value: |
+        Thanks for taking the time to fill out this bug report!
+
+        Only file bugs here! Ask questions on the mailing lists https://curl.se/mail/
+
+        **SECURITY RELATED?** Post it here: https://hackerone.com/curl
+
+        There are collections of known issues to be aware of:
+
+        - https://curl.se/docs/knownbugs.html
+        - https://curl.se/docs/todo.html
+
+  - type: textarea
+    id: reproducer
+    attributes:
+      label: I did this
+    validations:
+      required: false
+
+  - type: textarea
+    id: expected-behaviour
+    attributes:
+      label: I expected the following
+    validations: 
+      required: false
+  
+  - type: input
+    id: version
+    attributes:
+      label: curl/libcurl version
+      description: |
+        Please paste the output of `curl -V` here.
+      placeholder: 'curl 8.2.0'
+    validations:
+      required: false
+
+  - type: input
+    id: os
+    attributes:
+      label: operating system
+      description: |
+        On Unix please post the output of `uname -a` here.
+      placeholder: 'Fedora Linux 38'
+    validations:
+      required: false