From 05622b8eeef1edb95d2af58ec337895eb9a8f2cd Mon Sep 17 00:00:00 2001 From: Caleb Date: Mon, 13 Aug 2018 14:08:26 -0600 Subject: [PATCH] dev: add GitHub detailed issue templates (#1591) * dev: add GitHub detailed issue templates * dev: update PR template contributing guidelines link is already in PR UI changelog message is no longer needed -- it is generated from commit messages * dev: use bug report template on CMS crash * Update bug_report.md --- .github/ISSUE_TEMPLATE.md | 44 ------------------ .github/ISSUE_TEMPLATE/bug_report.md | 45 +++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 21 +++++++++ .github/PULL_REQUEST_TEMPLATE.md | 18 +++----- .../src/components/UI/ErrorBoundary.js | 2 +- 5 files changed, 72 insertions(+), 58 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 2dbc5d38..00000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,44 +0,0 @@ - - -**- Do you want to request a *feature* or report a *bug*?** - -**- What is the current behavior?** - -**- If the current behavior is a bug, please provide the steps to reproduce.** - -**- What is the expected behavior?** - - - -**- Please mention your versions where applicable.** - -Netlify CMS version: -Browser version: - -Node.JS version: -Operating System: - - -**- Please link or paste your `config.yml` below if applicable.** diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..c4b54c41 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,45 @@ +--- +name: Bug report +about: Report a problem you are experiencing + +--- + + + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Applicable Versions:** + + - Netlify CMS version: [e.g. 2.0.4] + - Git provider: [e.g. GitHub, BitBucket] + - OS: [e.g. Windows 7] + - Browser version [e.g. chrome 22, safari 11] + + - Node.JS version: + +**CMS configuration** +Please link or paste your CMS `config.yml` here. + + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..f0648f8e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,21 @@ +--- +name: Feature request +about: Suggest an idea for this project + +--- + + + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4013264f..0984bbf1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,35 +1,27 @@ -**- Summary** +**Summary** -**- Test plan** +**Test plan** -**- Description for the changelog** - - - -**- A picture of a cute animal (not mandatory but encouraged)** +**A picture of a cute animal (not mandatory but encouraged)** diff --git a/packages/netlify-cms-core/src/components/UI/ErrorBoundary.js b/packages/netlify-cms-core/src/components/UI/ErrorBoundary.js index 0dee2932..a4e7eb3d 100644 --- a/packages/netlify-cms-core/src/components/UI/ErrorBoundary.js +++ b/packages/netlify-cms-core/src/components/UI/ErrorBoundary.js @@ -2,7 +2,7 @@ import React from 'react'; import { css } from 'react-emotion'; import { colors } from 'netlify-cms-ui-default'; -const ISSUE_URL = 'https://github.com/netlify/netlify-cms/issues/new'; +const ISSUE_URL = 'https://github.com/netlify/netlify-cms/issues/new?template=bug_report.md'; const styles = { errorBoundary: css`