You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,3 +144,65 @@ included in the project:
144
144
145
145
**IMPORTANT**: By submitting a patch, you agree to allow the project owners to
146
146
license your work under the the terms of the [MIT License](LICENSE.md).
147
+
148
+
## <aname="commit"></a> Git Commit Guidelines
149
+
150
+
We have very precise rules over how our git commit messages can be formatted. This leads to **more
151
+
readable messages** that are easy to follow when looking through the **project history**. But also,
152
+
we use the git commit messages to **generate the AngularJS change log**.
153
+
154
+
### Commit Message Format
155
+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
156
+
format that includes a **type**, a **scope** and a **subject**:
157
+
158
+
```
159
+
<type>(<scope>): <subject>
160
+
<BLANK LINE>
161
+
<body>
162
+
<BLANK LINE>
163
+
<footer>
164
+
```
165
+
166
+
The **header** is mandatory and the **scope** of the header is optional.
167
+
168
+
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier
169
+
to read on GitHub as well as in various git tools.
170
+
171
+
### Revert
172
+
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.
173
+
174
+
### Type
175
+
Must be one of the following:
176
+
177
+
***feat**: A new feature
178
+
***fix**: A bug fix
179
+
***docs**: Documentation only changes
180
+
***style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
181
+
semi-colons, etc)
182
+
***refactor**: A code change that neither fixes a bug nor adds a feature
183
+
***perf**: A code change that improves performance
184
+
***test**: Adding missing tests
185
+
***chore**: Changes to the build process or auxiliary tools and libraries such as documentation
186
+
generation
187
+
188
+
### Scope
189
+
The scope could be anything specifying place of the commit change. For example `core`,
0 commit comments