From d3623114c85f4135c917e10a1394739981a83855 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Fri, 26 Feb 2021 00:33:31 +0000 Subject: [PATCH] Create bug_report.yml --- .github/ISSUE_TEMPLATE/bug_report.md | 67 ------------------------- .github/ISSUE_TEMPLATE/bug_report.yml | 70 +++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 67 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 e2b175884ba..00000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -name: Bug report -about: An issue with clap, clap_derive or clap_generate -title: '' -labels: 'T: bug' -assignees: '' - ---- - -### Make sure you completed the following tasks - -- [ ] Searched the [discussions](https://github.com/clap-rs/clap/discussions) -- [ ] Searched the closed issues - -### Code - -```rust -// You code goes here. Please try to write a complete program, -// including `fn main() { ... }` -``` - -### Steps to reproduce the issue - -1. Run `cargo run -- options...` -2. ??? -3. PROFIT!!! - -### Version - -* **Rust**: Output of `rustc -V` -* **Clap**: Can be found in Cargo.lock or Cargo.toml of your project (i.e. `grep clap Cargo.lock`). PLEASE DO NOT PUT "latest" HERE, use precise version. Put `master` (or other branch) if you're using the repo directly. - -### Actual Behavior Summary - -When I do like *this*, *that* is happening and I think it shouldn't. - -**If a project of yours is blocked due to this bug, please, mention it explicitly.** - -### Expected Behavior Summary - -I think *this* should happen instead. - -### Additional context - -Add any other context about the problem here. - -### Debug output - -Compile clap with `debug` feature: - -```toml -[dependencies] -clap = { version = "*", features = ["debug"] } -``` - -The output may be very long, so feel free to link to a gist or attach a text file - -
- Debug Output -
-
-
-Paste Debug Output Here
-
-
-
-
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 00000000000..7cfffa11c80 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,70 @@ +name: Bug report +about: An issue with clap, clap_derive or clap_generate +labels: 'T: bug' +issue_body: false +body: + - type: checkboxes + attributes: + label: Please complete the following tasks + options: + - label: I have searched the [discussions](https://github.com/clap-rs/clap/discussions) + required: true + - label: I have searched the existing issues + required: true + - type: input + attributes: + label: Rust Version + description: Output of `rustc -V` + validations: + required: true + - type: input + attributes: + label: Clap Version + description: Can be found in Cargo.lock or Cargo.toml of your project (i.e. `grep clap Cargo.lock`). PLEASE DO NOT PUT "latest" HERE, use precise version. Put `master` (or other branch) if you're using the repo directly. + validations: + required: true + - type: textarea + attributes: + label: Minimal reproducible code + description: Please write a minimal complete program which has this bug. Do not point to an existing repository. + value: | + ```rust + fn main() { + } + ``` + validations: + required: true + - type: textarea + attributes: + label: Steps to reproduce the bug with the above code + description: Example - `cargo run -- options...` + validations: + required: true + - type: textarea + attributes: + label: Actual Behaviour + placeholder: When I do like *this*, *that* is happening and I think it shouldn't. + validations: + required: true + - type: textarea + attributes: + label: Expected Behaviour + placeholder: I think *this* should happen instead. + validations: + required: true + - type: textarea + attributes: + label: Additional Context + placeholder: Add any other context about the problem here. + - type: textarea + attributes: + label: Debug Output + description: | + ### Debug output + + Compile clap with `debug` feature: + + ```toml + [dependencies] + clap = { version = "*", features = ["debug"] } + ```