From 73ab27c11a88f9bbc33caec6e8b781b8c3b7602c Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Mon, 18 May 2020 15:28:16 -0400 Subject: [PATCH] Update templates, add link to github discussions (#11585) [skip ci] --- .github/ISSUE_TEMPLATE.md | 6 --- .github/ISSUE_TEMPLATE/Bug_report.md | 12 ++--- .github/ISSUE_TEMPLATE/Npm_error.md | 4 +- .github/ISSUE_TEMPLATE/Regression-v7.md | 52 ---------------------- .github/ISSUE_TEMPLATE/Support_question.md | 19 -------- .github/ISSUE_TEMPLATE/Support_us.md | 28 ------------ .github/ISSUE_TEMPLATE/config.yml | 8 ++++ 7 files changed, 15 insertions(+), 114 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md delete mode 100644 .github/ISSUE_TEMPLATE/Regression-v7.md delete mode 100644 .github/ISSUE_TEMPLATE/Support_question.md delete mode 100644 .github/ISSUE_TEMPLATE/Support_us.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 24e79d04832c..000000000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md index cd9a85599f18..0da6190ad6c5 100644 --- a/.github/ISSUE_TEMPLATE/Bug_report.md +++ b/.github/ISSUE_TEMPLATE/Bug_report.md @@ -9,7 +9,7 @@ assignees: '' ## Bug Report - + - [ ] I would like to work on a fix! -**Current Behavior** +**Current behavior** A clear and concise description of the behavior. -- [REPL](babeljs.io/repl), [Codesandbox](https://codesandbox.io/s/babel-repl-custom-plugin-7s08o?file=/src/index.js), or GitHub Repo link if applicable: +- [REPL](babeljs.io/repl), [Codesandbox](https://codesandbox.io/s/babel-repl-custom-plugin-7s08o?file=/src/index.js), or GitHub Repo helps! **Input Code** @@ -28,7 +28,7 @@ A clear and concise description of the behavior. var your => (code) => here; ``` -**Expected behavior/code** +**Expected behavior** A clear and concise description of what you expected to happen (or code). **Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)** @@ -54,5 +54,5 @@ A clear and concise description of what you expected to happen (or code). **Possible Solution** -**Additional context/Screenshots** -Add any other context about the problem here. If applicable, add screenshots to help explain. +**Additional context** +Add any other context about the problem here. Or a screenshot if applicable diff --git a/.github/ISSUE_TEMPLATE/Npm_error.md b/.github/ISSUE_TEMPLATE/Npm_error.md index a47cd0439fcc..a9adf4a8495b 100644 --- a/.github/ISSUE_TEMPLATE/Npm_error.md +++ b/.github/ISSUE_TEMPLATE/Npm_error.md @@ -9,9 +9,7 @@ assignees: '' -First of all, check if the package for which `npm` throws an error is actually published by searching [on the npm website](https://www.npmjs.com/). - -If it is, then there is nothing that we can do about it: it was correctly published, but for some reason your package manager client doesn't find it. +First, check if the package for which `npm` throws an error is published by searching [on the npm website](https://www.npmjs.com/). If it is, then there is nothing that we can do about it: it was correctly published, but for some reason your package manager client doesn't find it. If you are using a proxy for the npm registry (maybe it's used by your company, or you are using it because your country blocks the main npm registry), then it's likely that it has cached the old version of the package and it isn't loading the new one. If you can, try clearing the proxy's cache. Otherwise, you will have to wait until the cache is automatically updated (it might take a few hours, or even days). diff --git a/.github/ISSUE_TEMPLATE/Regression-v7.md b/.github/ISSUE_TEMPLATE/Regression-v7.md deleted file mode 100644 index e2d524c4aac7..000000000000 --- a/.github/ISSUE_TEMPLATE/Regression-v7.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -name: "\U0001F4A5 v7 Regression" -about: Report an unexpected behavior in v7 from v6 (Check the upgrade guide first - ✌️) -title: '' -labels: 'i: bug, 7.x: regression, i: needs triage' -assignees: '' - ---- - -# v7 Regression - - -- [ ] I would like to work on a fix! - -> First check out: https://babeljs.io/docs/en/v7-migration -> Also a partial upgrade tool: https://github.com/babel/babel-upgrade - -**Potential Commit/PR that introduced the regression** -If you have time to investigate, what PR/date introduced this issue. - -**Describe the regression** -A clear and concise description of what the regression is. - -**Input Code** - - -```js -var your => (code) => here; -``` - -**Expected behavior/code** -A clear and concise description of what you expected to happen (or code). - -**Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command)** - -```js -{ - "your": { "config": "here" } -} -``` - -**Environment** - -``` - -``` -- Babel version(s): [e.g. v6.0.0, v7.0.0-beta.34] -- Node/npm version: [e.g. Node 8/npm 5] -- OS: [e.g. OSX 10.13.4, Windows 10] -- Monorepo [e.g. yes/no/Lerna] -- How you are using Babel: [e.g. `cli`, `register`, `loader`] diff --git a/.github/ISSUE_TEMPLATE/Support_question.md b/.github/ISSUE_TEMPLATE/Support_question.md deleted file mode 100644 index 57c183f7323d..000000000000 --- a/.github/ISSUE_TEMPLATE/Support_question.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: "\U0001F917 Support Question" -about: "If you have a question \U0001F4AC, please check out our Slack or StackOverflow!" -title: '' -labels: 'i: question, i: needs triage' -assignees: '' - ---- - ---------------^ Click "Preview" for a nicer view! -We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks! 😁. - ---- - -* Slack Community Chat: https://babeljs.slack.com (you can sign-up at https://slack.babeljs.io/ for an invite) -* StackOverflow: https://stackoverflow.com/questions/tagged/babeljs using the tag `babeljs` -* Twitter: If it's just a quick question you can ping our Twitter: https://twitter.com/babeljs -* Also have a look at the readme for more information on how to get support: - https://github.com/babel/babel/blob/master/README.md diff --git a/.github/ISSUE_TEMPLATE/Support_us.md b/.github/ISSUE_TEMPLATE/Support_us.md deleted file mode 100644 index cd7eb394bdd8..000000000000 --- a/.github/ISSUE_TEMPLATE/Support_us.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: "\U0001F91D Support us on Babel" -about: "If you would like to support our efforts in maintaining this community-driven - project \U0001F64C!" -title: '' -labels: '' -assignees: '' - ---- - ---------------^ Click "Preview" for a nicer view! -> Open Collective: https://opencollective.com/babel -> Henry's Patreon: https://www.patreon.com/henryzhu - -Help support Babel! - -Babel has always been a community project, not really backed or owned by any single (or group) of companies. While some maintainers used to work at Facebook (and Henry at Adobe) no one was working on it full time and there certainly isn't a huge company or team anywhere doing all this work. - ---- - -As a group of volunteers you can help us in a few ways - -- Giving developer time on the project. (Message us on [Twitter](https://twitter.com/babeljs) or [Slack](https://slack.babeljs.io/) for guidance). Companies should be paying their employees to contribute back to the open source projects they use everyday. -- Giving funds by becoming one of our sponsors/donators! - -If you'd like to sustain the future of the project as a whole, we have an [Open Collective](https://opencollective.com/babel) that you can donate to. This is a way for funds to be allocated to the core team. - -You can also support [Henry](https://github.com/hzoo) directly since I [left my job to work on Babel and Open Source full time](https://twitter.com/left_pad/status/969793227862790144) at my [Patreon](https://www.patreon.com/henryzhu). diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000000..e3852e87370d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: Ask a Question + url: https://github.com/babel/babel/discussions + about: Ask any questions with the community! + - name: Support the Team! + url: https://github.com/sponsors/babel + about: Support the Babel project financially! \ No newline at end of file