Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
4.1 KiB

  1. # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
  2. > [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [angular](https://github.com/angular/angular) preset
  3. **Issues with the convention itself should be reported on the Angular issue tracker.**
  4. ## Angular Convention
  5. Angular's [commit message guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit).
  6. ### Examples
  7. Appears under "Features" header, pencil subheader:
  8. ```
  9. feat(pencil): add 'graphiteWidth' option
  10. ```
  11. Appears under "Bug Fixes" header, graphite subheader, with a link to issue #28:
  12. ```
  13. fix(graphite): stop graphite breaking when width < 0.1
  14. Closes #28
  15. ```
  16. Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
  17. ```
  18. perf(pencil): remove graphiteWidth option
  19. BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reason.
  20. ```
  21. The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
  22. ```
  23. revert: feat(pencil): add 'graphiteWidth' option
  24. This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
  25. ```
  26. ### Commit Message Format
  27. A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
  28. ```
  29. <type>(<scope>): <subject>
  30. <BLANK LINE>
  31. <body>
  32. <BLANK LINE>
  33. <footer>
  34. ```
  35. The **header** is mandatory and the **scope** of the header is optional.
  36. ### Revert
  37. If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
  38. ### Type
  39. If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. However if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
  40. Other prefixes are up to your discretion. Suggested prefixes are `build`, `ci`, `docs` ,`style`, `refactor`, and `test` for non-changelog related tasks.
  41. Details regarding these types can be found in the official [Angular Contributing Guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type)
  42. ### Scope
  43. The scope could be anything specifying place of the commit change. For example `$location`,
  44. `$browser`, `$compile`, `$rootScope`, `ngHref`, `ngClick`, `ngView`, etc...
  45. ### Subject
  46. The subject contains succinct description of the change:
  47. * use the imperative, present tense: "change" not "changed" nor "changes"
  48. * don't capitalize first letter
  49. * no dot (.) at the end
  50. ### Body
  51. Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
  52. The body should include the motivation for the change and contrast this with previous behavior.
  53. ### Footer
  54. The footer should contain any information about **Breaking Changes** and is also the place to
  55. reference GitHub issues that this commit **Closes**.
  56. **Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
  57. A detailed explanation can be found in this [document][commit-message-format].
  58. [npm-image]: https://badge.fury.io/js/conventional-changelog-angular.svg
  59. [npm-url]: https://npmjs.org/package/conventional-changelog-angular
  60. [travis-image]: https://travis-ci.org/conventional-changelog/conventional-changelog-angular.svg?branch=master
  61. [travis-url]: https://travis-ci.org/conventional-changelog/conventional-changelog-angular
  62. [daviddm-image]: https://david-dm.org/conventional-changelog/conventional-changelog-angular.svg?theme=shields.io
  63. [daviddm-url]: https://david-dm.org/conventional-changelog/conventional-changelog-angular
  64. [coveralls-image]: https://coveralls.io/repos/conventional-changelog/conventional-changelog-angular/badge.svg
  65. [coveralls-url]: https://coveralls.io/r/conventional-changelog/conventional-changelog-angular