From a8e98b84f85979d883b201f1261df282f6c62fce Mon Sep 17 00:00:00 2001 From: acatl pacheco Date: Thu, 25 Jan 2018 09:20:25 -0500 Subject: [PATCH] docs(guidelines): improve contribution guidelines (#180) change templates + force codemods on breaking changes --- .github/ISSUE_TEMPLATE.md | 31 +++++++++++++++---------------- .github/PULL_REQUEST_TEMPLATE.md | 9 +++++++++ CONTRIBUTING.md | 15 +++++++++++++-- 3 files changed, 37 insertions(+), 18 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 5e02c5c2..6bffcd9e 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -3,37 +3,36 @@ Thanks for your interest in the project. We appreciate bugs filed and PRs submit Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). -Please fill out this template with all the relevant information so we can +Please fill/un-comment out this template with all the relevant information so we can understand what's going on and fix the issue. --> -- `data-point` version: -- `node` version: -- `npm` version: +**Problem description**: + -**Any relevant code**: -```javascript +**Suggested solution**: + -``` -**What you did**: + **What happened**: - -**Reproduction**: - +**Reproduction**: --- paste your link here -- -**Problem description**: + +**Environment**: -**Suggested solution**: +- `data-point` version: +- `node` version: +- `npm` version: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 6cd73760..b54b6433 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -9,6 +9,14 @@ contributing guidelines (found in the CONTRIBUTING.md file). Please fill out the information below to expedite the review and (hopefully) merge of your pull request! + +BREAKING CHANGES: + +If your PR includes a breaking change, please submit it with a codemod under +data-point-codemods that will help users upgrade their codebase. + +Breaking changes without a codemod will not be accepted unless a codemod is not +viable or does not apply to the specific situation. --> @@ -24,6 +32,7 @@ merge of your pull request! **Checklist**: +- [ ] Has Breaking changes - [ ] Documentation - [ ] Tests - [ ] Ready to be merged diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 624fca2f..1e99bd85 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,10 +57,21 @@ We will only be supporting node 6 and above, please make sure the code you use i 1. Fork it 2. Create your feature branch `git checkout -b feature/my-new-feature` -3. Commit your changes through `npm run commit` +3. Commit your changes through `yarn run commit` 4. Push to the branch `git push origin feature/my-new-feature` 5. Create a new [Pull Request](https://github.com/ViacomInc/data-point/compare) +### Updating Documentation + Please update the respective README.md files with details of changes to the interface. -**Note on commit messages**: All commit messages **must** use [commitizen](http://commitizen.github.io/cz-cli/) format to be accepted, to ensure you use this format, only commit through `yarn run commit`. +### Commit message format + +All commit messages **must** use [commitizen](http://commitizen.github.io/cz-cli/) format to be accepted, to ensure you use this format, only commit through `yarn run commit`. + +### Breaking changes + +If your pull request includes a breaking change, please submit it with a [codemod](https://github.com/facebook/jscodeshift) under +data-point-codemods that will help users upgrade their codebase. + +Breaking changes without a codemod will not be accepted unless a codemod is not viable or does not apply to the specific situation.