docs(contributing): update contributing and scripts docs for commit messages

This commit is contained in:
Brandy Carney
2016-11-04 13:24:06 -04:00
parent 578ffc3141
commit cf1196a209
2 changed files with 12 additions and 5 deletions

View File

@@ -105,15 +105,15 @@ Looking for an issue to fix? Make sure to look through our issues with the [help
## Commit Message Format
We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the our change log. (Ok you got us, it's basically Angular's commit message format).
We have very precise rules over how our git commit messages should be formatted. This leads to readable messages that are easy to follow when looking through the project history. We also use the git commit messages to generate our [changelog](https://github.com/driftyco/ionic/blob/master/CHANGELOG.md). (Ok you got us, it's basically Angular's commit message format).
`type(scope): subject`
#### Type
Must be one of the following:
* **fix**: A bug fix
* **feat**: A new feature
* **fix**: A bug fix
* **docs**: Documentation only changes
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
* **refactor**: A code change that neither fixes a bug nor adds a feature
@@ -122,15 +122,17 @@ Must be one of the following:
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation generation
#### Scope
The scope could be anything specifying place of the commit change. For example `alert`, `button`, `menu`, `nav`, etc...
The scope can be anything specifying place of the commit change. For example `action-sheet`, `button`, `menu`, `nav`, etc. If you make multiple commits for the same component, please keep the naming of this component consistent. For example, if you make a change to navigation and the first commit is `fix(nav)`, you should continue to use `nav` for any more commits related to navigation.
#### Subject
The subject contains succinct description of the change:
* use the imperative, present tense: "change" not "changed" nor "changes"
* do not capitalize first letter
* do not place a period (.) at the end
* do not place a period `.` at the end
* entire length of the commit message must not go over 50 characters
* describe what the commit does, not what issue it relates to or fixes
* **be brief, yet descriptive** - we should have a good understanding of what the commit does by reading the subject
## License

View File

@@ -5,6 +5,11 @@
All of these commands require you to run `npm install` first. To see a full list of the gulp commands, run `gulp`.
### Committing
Please follow the commit message format in [CONTRIBUTING.md](https://github.com/driftyco/ionic/blob/master/.github/CONTRIBUTING.md#commit-message-format).
### Installing Nightly Version
The latest nightly version can be installed via npm.
@@ -115,7 +120,7 @@ To remove the linked version of `ionic-angular` do `npm rm ionic-angular`, and t
- Creates a new tag and release on Github
3. Verify that the `changelog` changes are accurate and the `package.json` version is correct (`git status` && `git diff`)
4. Commit and push
5. Sit back and have a beer :beers: (or wine :wine_glass:)
5. Sit back and have some beer :beers: (or wine :wine_glass:)
### Publish a nightly release
1. Run `gulp nightly`