From 505f6d548f879edf64fad36d9e2c679e449ce24e Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Fri, 2 Jul 2021 01:10:50 +0200 Subject: [PATCH] doc: improve issue forms. (#1448) --- .github/ISSUE_TEMPLATE/bug_report.yml | 37 ++++++++++++++++++--- .github/ISSUE_TEMPLATE/feature_request.yml | 14 ++++++++ .github/ISSUE_TEMPLATE/new_dns_provider.yml | 14 ++++++++ 3 files changed, 60 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 96ba5fbb95..dd0e6ad524 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -30,12 +30,26 @@ body: validations: required: true + - type: dropdown + id: type + attributes: + label: How do you use lego? + options: + - Library + - Binary + - Docker image + - Through Traefik + - Through Caddy + - Other + validations: + required: true + - type: textarea id: steps attributes: label: Reproduction steps description: "How do you trigger this bug? Please walk us through it step by step." - value: | + placeholder: | 1. ... 2. ... 3. ... @@ -47,11 +61,23 @@ body: id: version attributes: label: Version of lego + description: |- + ```console + $ lego --version + ``` + placeholder: Paste output here + render: console + validations: + required: true + + - type: textarea + id: logs + attributes: + label: Logs value: |-
```console - $ lego --version # paste output here ``` @@ -60,16 +86,17 @@ body: required: true - type: textarea - id: logs + id: go-env attributes: - label: Logs + label: Go environment (if applicable) value: |-
```console + $ go version && go env # paste output here ```
validations: - required: true + required: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 558bf74584..112ca2c54a 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -9,6 +9,20 @@ body: - label: Yes, I've searched similar issues on GitHub and didn't find any. required: true + - type: dropdown + id: type + attributes: + label: How do you use lego? + options: + - Library + - Binary + - Docker image + - Through Traefik + - Through Caddy + - Other + validations: + required: true + - type: textarea id: description attributes: diff --git a/.github/ISSUE_TEMPLATE/new_dns_provider.yml b/.github/ISSUE_TEMPLATE/new_dns_provider.yml index a94051cacb..55c3f3b152 100644 --- a/.github/ISSUE_TEMPLATE/new_dns_provider.yml +++ b/.github/ISSUE_TEMPLATE/new_dns_provider.yml @@ -19,6 +19,20 @@ body: - label: Yes, I'm able to test an implementation if someone creates a pull request to add the support of this DNS provider. required: false + - type: dropdown + id: type + attributes: + label: How do you use lego? + options: + - Library + - Binary + - Docker image + - Through Traefik + - Through Caddy + - Other + validations: + required: true + - type: input id: provider-link attributes: