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
The first line of your commit should be prefixed with a type, be a single
93
+
sentence with no period, and succinctly indicate what this commit changes.
94
+
95
+
All commit message lines should be kept to fewer than 80 characters if possible.
96
+
97
+
An example of a good commit message.
98
+
99
+
```log
100
+
docs: remove 0.1, 0.2 spec support from README
101
+
```
102
+
103
+
### Sign your work
104
+
105
+
Each PR must be signed. TLDR; use the `--signoff` flag for your commits.
106
+
107
+
```console
108
+
git commit --signoff
109
+
```
110
+
111
+
The sign-off is a signature line at the end of your commit message. Your
112
+
signature certifies that you wrote the patch or otherwise have the right to pass
113
+
it on as open-source code. The rules are pretty simple: if you can certify
114
+
the below (from [developercertificate.org](http://developercertificate.org/)):
115
+
116
+
```
117
+
Developer Certificate of Origin
118
+
Version 1.1
119
+
120
+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
121
+
1 Letterman Drive
122
+
Suite D4700
123
+
San Francisco, CA, 94129
124
+
125
+
Everyone is permitted to copy and distribute verbatim copies of this
126
+
license document, but changing it is not allowed.
127
+
128
+
Developer's Certificate of Origin 1.1
129
+
130
+
By making a contribution to this project, I certify that:
131
+
132
+
(a) The contribution was created in whole or in part by me and I
133
+
have the right to submit it under the open source license
134
+
indicated in the file; or
135
+
136
+
(b) The contribution is based upon previous work that, to the best
137
+
of my knowledge, is covered under an appropriate open source
138
+
license and I have the right under that license to submit that
139
+
work with modifications, whether created in whole or in part
140
+
by me, under the same open source license (unless I am
141
+
permitted to submit under a different license), as indicated
142
+
in the file; or
143
+
144
+
(c) The contribution was provided directly to me by some other
145
+
person who certified (a), (b) or (c) and I have not modified
146
+
it.
147
+
148
+
(d) I understand and agree that this project and the contribution
149
+
are public and that a record of the contribution (including all
150
+
personal information I submit with it, including my sign-off) is
151
+
maintained indefinitely and may be redistributed consistent with
152
+
this project or the open source license(s) involved.
153
+
```
154
+
155
+
Then you just add a line to every git commit message:
156
+
157
+
Signed-off-by: Joe Smith <joe.smith@email.com>
158
+
159
+
Use your real name (sorry, no pseudonyms or anonymous contributions.)
160
+
161
+
If you set your `user.name` and `user.email` git configs, you can sign your
162
+
commit automatically with `git commit -s`.
163
+
164
+
Note: If your git config information is set properly then viewing the `git log`
165
+
information for your commit will look something like this:
166
+
167
+
```
168
+
Author: Joe Smith <joe.smith@email.com>
169
+
Date: Thu Feb 2 11:41:15 2018 -0800
170
+
171
+
Update README
172
+
173
+
Signed-off-by: Joe Smith <joe.smith@email.com>
174
+
```
175
+
176
+
Notice the `Author` and `Signed-off-by` lines match. If they don't your PR will
177
+
be rejected by the automated DCO check.
178
+
179
+
180
+
## Style Guide
181
+
182
+
Code style for this module is maintained using [`eslint`](https://www.npmjs.com/package/eslint).
183
+
When you run tests with `npm test` linting is performed first. If you want to
184
+
check your code style for linting errors without running tests, you can just
185
+
run `npm run lint`. If there are errors, you can usually fix them automatically
186
+
by running `npm run fix`.
187
+
188
+
Linting rules are declared in [.eslintrc](https://github.com/cloudevents/sdk-javascript/blob/master/.eslintrc).
14
189
15
190
## Changelog
16
191
@@ -29,34 +204,31 @@ fix: removed a bug that was causing the rotation of the earth to change
29
204
30
205
will show up in the "Bug Fixes" section of the changelog for a given release.
31
206
32
-
## Pull Requests
33
-
34
-
Guidelines about how to perform pull requests.
35
-
36
-
- before submit the PR, open an issue and link them
207
+
## Maintainer's Guide
37
208
38
-
### Commit Messages
39
-
40
-
Please follow the Conventional Commits specification noted above. the first line of
41
-
your commit should be prefixed with a type, be a single sentence with no period, and
42
-
succinctly indicate what this commit changes.
43
-
44
-
All commit message lines should be kept to fewer than 80 characters if possible.
209
+
Here are a few tips for repository maintainers.
45
210
46
-
### PR to `develop`
211
+
* Stay on top of your pull requests. PRs that languish for too long can become difficult to merge.
212
+
* Work from your own fork. As you are making contributions to the project, you should be working from your own fork just as outside contributors do. This keeps the branches in github to a minimum and reduces unnecessary CI runs.
213
+
* Try to proactively label issues with backport labels if it's obvious that a change should be backported to previous releases.
214
+
* When landing pull requests, if there is more than one commit, try to squash into a single commit. Usually this can just be done with the GitHub UI when merging the PR. Use "Squash and merge".
215
+
* Triage issues once in a while in order to keep the repository alive. During the triage:
216
+
* If some issues are stale for too long because they are no longer valid/relevant or because the discussion reached no significant action items to perform, close them and invite the users to reopen if they need it.
217
+
* If some PRs are no longer valid but still needed, ask the user to rebase them
218
+
* If some issues and PRs are still relevant, use labels to help organize tasks
219
+
* If you find an issue that you want to create a fix for and submit a pull request, be sure to assign it to yourself so that others maintainers don't start working on it at the same time.
47
220
48
-
- fixes in the documentation (readme, contributors)
49
-
- propose new files for the documentation
50
-
- implementation of new features
51
-
52
-
### PR to `master`
53
-
54
-
- hot fixes
55
-
56
-
## Style Guide
221
+
### Branch Management
57
222
58
-
_TODO_
223
+
The `master` branch is is the bleeding edge. New major versions of the module
224
+
are cut from this branch and tagged. If you intend to submit a pull request
225
+
you should use `master HEAD` as your starting point.
59
226
60
-
### JavaScript Style Guide
227
+
Each major release will result in a new branch and tag. For example, the
228
+
release of version 1.0.0 of the module will result in a `v1.0.0` tag on the
229
+
release commit, and a new branch `v1.x.y` for subsequent minor and patch
230
+
level releases of that major version. However, development will continue
231
+
apace on `master` for the next major version - e.g. 2.0.0. Version branches
232
+
are only created for each major version. Minor and patch level releases
0 commit comments