From 3034709df07d98fc35c01f37ab7bb09e6399d4e5 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 4 Sep 2018 17:31:45 +0200 Subject: [PATCH] Improve GitHub templates (#44455) * Improve GitHub templates The existing templates are basically a copy for each type of issue (bug, feature, doc) whereas we can make the template more specific to the task at hand. This PR includes: - More specific sections depending on the type of issue - More concise and direct instructions (NO NEED FOR FRUSTRATION CAPS!) - Single-line comments (no need to guide people to avoid wrong edits) - Improved paste area - Better headings/titles - No 'Summary' title for PRs (so commit information is placed correctly) This PR would require some improvements to Ansibot. * Remove controversial Ansibot stuff Make it easier to get the first batch merged. * Restore ISSUE_TEMPLATE.md * Incorporate reviewer suggestions * Make OS / ENVIRONMENT doc-related * Rephrase Ansibot-related message --- .github/ISSUE_TEMPLATE.md | 43 ++++++-------- .github/ISSUE_TEMPLATE/bug_report.md | 48 +++++++--------- .../ISSUE_TEMPLATE/documentation_report.md | 57 ++++++------------- .github/ISSUE_TEMPLATE/feature_request.md | 52 +++-------------- .github/PULL_REQUEST_TEMPLATE.md | 30 +++++----- 5 files changed, 76 insertions(+), 154 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 8242ba2e87b..ad3657dc28c 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,12 +1,9 @@ - + + + ##### SUMMARY - + ##### ISSUE TYPE @@ -15,44 +12,40 @@ Otherwise it may end up being automatically closed by our bot. --> - Documentation Report ##### COMPONENT NAME - + ##### ANSIBLE VERSION - -``` + +```paste below ``` ##### CONFIGURATION - + +```paste below + +``` ##### OS / ENVIRONMENT - + ##### STEPS TO REPRODUCE - + ```yaml ``` - + ##### EXPECTED RESULTS - + ##### ACTUAL RESULTS - + - -``` + +```paste below ``` diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index a481fc9faeb..b5d7009d8a7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,61 +1,53 @@ --- name: 🐛 Bug report about: Create a report to help us improve - --- - - + + + ##### SUMMARY - + ##### ISSUE TYPE - - Bug Report +- Bug Report ##### COMPONENT NAME - + ##### ANSIBLE VERSION - -``` + +```paste below ``` ##### CONFIGURATION - + +```paste below + +``` ##### OS / ENVIRONMENT - + ##### STEPS TO REPRODUCE - + ```yaml ``` - + ##### EXPECTED RESULTS - + + ##### ACTUAL RESULTS - + - -``` + +```paste below ``` diff --git a/.github/ISSUE_TEMPLATE/documentation_report.md b/.github/ISSUE_TEMPLATE/documentation_report.md index 2df08f7f360..951bd8a15db 100644 --- a/.github/ISSUE_TEMPLATE/documentation_report.md +++ b/.github/ISSUE_TEMPLATE/documentation_report.md @@ -1,61 +1,38 @@ --- name: 📝 Documentation Report about: Ask us about docs - --- - - + + + ##### SUMMARY - + + + ##### ISSUE TYPE - - Documentation Report +- Documentation Report ##### COMPONENT NAME - + ##### ANSIBLE VERSION - -``` + +```paste below ``` ##### CONFIGURATION - - -##### OS / ENVIRONMENT - - -##### STEPS TO REPRODUCE - - - -```yaml + +```paste below ``` - - -##### EXPECTED RESULTS - - -##### ACTUAL RESULTS - +##### OS / ENVIRONMENT + - -``` +##### ADDITIONAL INFORMATION + -``` + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 8c9e2aec84b..55c861b9526 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,61 +1,25 @@ --- name: ✨ Feature request about: Suggest an idea for this project - --- - - + + ##### SUMMARY - + ##### ISSUE TYPE - - Feature Idea +- Feature Idea ##### COMPONENT NAME - - -##### ANSIBLE VERSION - -``` - -``` - -##### CONFIGURATION - + -##### OS / ENVIRONMENT - - -##### STEPS TO REPRODUCE - +##### ADDITIONAL INFORMATION + ```yaml ``` - - -##### EXPECTED RESULTS - - -##### ACTUAL RESULTS - - - -``` - -``` + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 0ffd462b9cb..5919733a76a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,33 +1,29 @@ ##### SUMMARY - + - + ##### ISSUE TYPE - - - Feature Pull Request - - New Module Pull Request - - Bugfix Pull Request - - Docs Pull Request + +- Bugfix Pull Request +- Docs Pull Request +- Feature Pull Request +- New Module Pull Request ##### COMPONENT NAME - + ##### ANSIBLE VERSION - -``` + +```paste below ``` - ##### ADDITIONAL INFORMATION - + + -``` +```paste below ```