From 0dd2327bca4095d53b30a2e2d0fb6d2f5981314b Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 3 Mar 2021 13:17:42 +0100 Subject: [PATCH] Add CoC checkboxes to the issue forms --- .github/ISSUE_TEMPLATE/bug_report.yml | 12 ++++++++++++ .../ISSUE_TEMPLATE/documentation_report.yml | 18 ++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.yml | 12 ++++++++++++ 3 files changed, 42 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 8c80e8e924a..3b5341c56a0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -122,4 +122,16 @@ body: ``` validations: required: true + + +- type: checkboxes + attributes: + label: Code of Conduct + description: | + Read the [Ansible Code of Conduct][CoC] first. + + [CoC]: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--bug_report.yml + options: + - label: I agree to follow the Ansible Code of Conduct + required: true ... diff --git a/.github/ISSUE_TEMPLATE/documentation_report.yml b/.github/ISSUE_TEMPLATE/documentation_report.yml index 92df1b71e7e..ff22a16db33 100644 --- a/.github/ISSUE_TEMPLATE/documentation_report.yml +++ b/.github/ISSUE_TEMPLATE/documentation_report.yml @@ -86,6 +86,19 @@ body: validations: required: true + +- type: checkboxes + attributes: + label: Code of Conduct + description: | + Read the [Ansible Code of Conduct][CoC] first. + + [CoC]: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--documentation_report.yml + options: + - label: I agree to follow the Ansible Code of Conduct + required: true + + - type: markdown attributes: value: | @@ -94,4 +107,9 @@ body: Describe how this improves the documentation, e.g. before/after situation or screenshots. **HINT:** You can paste https://gist.github.com links for larger files. + placeholder: >- + When the improvement is applied, it makes it more straightforward + to understand X. + validations: + required: true ... diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 3e100a23259..01ad4456c51 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -59,4 +59,16 @@ body: ``` validations: required: true + + +- type: checkboxes + attributes: + label: Code of Conduct + description: | + Read the [Ansible Code of Conduct][CoC] first. + + [CoC]: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--feature_request.yml + options: + - label: I agree to follow the Ansible Code of Conduct + required: true ...