Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 4699c4a

Browse files
committed
Update CONTRIBUTING with commit message guidelines
There were some unwritten rules about commit messages in the linkerd repo. These guidelines now reflect this change.
1 parent 49c6be5 commit 4699c4a

File tree

2 files changed

+76
-35
lines changed

2 files changed

+76
-35
lines changed

CONTRIBUTING.md

Lines changed: 65 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,83 @@
11
# Contributing to linkerd-tcp #
22

3-
:balloon: Thank you for using the linkerd-tcp project!
3+
:balloon: Thanks for your help improving the project!
44

55
## Getting Help ##
66

7-
If you have a question about linkerd-tcp or have encountered problems
8-
using linkerd-tcp, you may [file an issue][issue] or join us on
9-
[Slack][slack].
7+
If you have a question about linkerd-tcp or have encountered problems using it,
8+
you may [file an issue][issue] or join us on [Slack][slack].
109

11-
## Submitting Changes ##
10+
## Submitting a Pull Request ##
1211

13-
If you'd like to make a change to linkerd-tcp, you should do the
14-
following:
12+
Do you have an improvement?
1513

1614
1. Submit an [issue][issue] describing your proposed change.
17-
2. We will respond to your issue promptly.
18-
3. If your proposed change is accepted, and you haven't already done
19-
so, sign [Buoyant's Contributor License Agreement][cla]. Before we
20-
can accept your patches, our lawyers would like to be assured that:
21-
- The code you're contributing is yours, and you have the right to
22-
license it.
23-
- You're granting us a license to distribute said code under the
24-
terms of this agreement.
25-
4. Fork the linkerd-tcp repo, develop and test your code
26-
changes. See the project's [README](README.md) for further information
27-
about working in this repository.
28-
5. Submit a pull request against linkerd-tcp's `master` branch.
29-
6. Your branch may be merged once all configured checks pass,
30-
including:
31-
- 2 code review approvals, at least 1 of which is from a buoyant member
15+
2. We will try to respond to your issue promptly.
16+
3. Fork this repo, develop and test your code changes. See the project's [README](README.md) for further information about working in this repository.
17+
4. Submit a pull request against this repo's `master` branch.
18+
5. You'll need to have signed our [Contributor License Agreement][cla] before we can accept any non-trivial changes.
19+
6. Your branch may be merged once all configured checks pass, including:
20+
- 2 code review approvals, at least 1 of which is from a [linkerd organization member][members].
3221
- The branch has passed tests in CI.
3322

34-
### Git history ###
23+
## Committing ##
3524

36-
Prior to submitting a pull request, please revise the commit history
37-
of your branch such that each commit is self-explanatory, even without
38-
the context of the pull request, and that it compiles & tests
39-
cleanly.
25+
We prefer squash or rebase commits so that all changes from a branch are
26+
committed to master as a single commit. All pull requests are squashed when
27+
merged, but rebasing prior to merge gives you better control over the commit
28+
message.
4029

41-
Typically, a pull request consists of a single commit. It may
42-
occasionally be preferable to submit a change with several commits,
43-
but each should be a complete change needed to complete a larger
44-
feature. Each commit should be documented appropriately.
30+
### Commit messages ###
4531

46-
Thank you for getting involved!
47-
:heart: Team Buoyant
32+
Finalized commit messages should be in the following format:
33+
34+
```
35+
Subject
36+
37+
Problem
38+
39+
Solution
40+
41+
Validation
42+
```
43+
44+
#### Subject ####
45+
46+
- one line, <= 50 characters
47+
- describe what is done; not the result
48+
- use the active voice
49+
- capitalize first word and proper nouns
50+
- do not end in a period — this is a title/subject
51+
- reference the github issue by number
52+
53+
##### Examples #####
54+
55+
```
56+
bad: server disconnects should cause dst client disconnects.
57+
good: Propagate disconnects from source to destination
58+
```
59+
60+
```
61+
bad: support tls servers
62+
good: Introduce support for server-side TLS (#347)
63+
```
64+
65+
#### Problem ####
66+
67+
Explain the context and why you're making that change. What is the problem
68+
you're trying to solve? In some cases there is not a problem and this can be
69+
thought of as being the motivation for your change.
70+
71+
#### Solution ####
72+
73+
Describe the modifications you've made.
74+
75+
#### Validation ####
76+
77+
Describe the testing you've done to validate your change. Performance-related
78+
changes should include before- and after- benchmark results.
4879

4980
[cla]: https://buoyant.io/cla/
5081
[issue]: https://github.com/linkerd/linkerd-tcp/issues/new
82+
[members]: https://github.com/orgs/linkerd/people
5183
[slack]: http://slack.linkerd.io/

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Status: _beta_
2929
2. Configure and run [namerd][namerd].
3030
3. From this repository, run: `cargo run -- example.yml`
3131

32+
We :heart: pull requests! See [CONTRIBUTING.md](CONTRIBUTING.md) for info on
33+
contributing changes.
34+
3235
## Usage ##
3336

3437
```
@@ -84,7 +87,7 @@ proxies:
8487
Logging may be enabled by setting `RUST_LOG=linkerd_tcp=info` on the environment. When
8588
debugging, set `RUST_LOG=trace`.
8689

87-
## Packaging ##
90+
## Docker ##
8891

8992
To build the linkerd/linkerd-tcp docker image, run:
9093

@@ -100,6 +103,11 @@ Try running the image with:
100103
docker run -v `pwd`/example.yml:/example.yml linkerd/linkerd-tcp:latest /example.yml
101104
```
102105

106+
## Code of Conduct ##
107+
108+
This project is for everyone. We ask that our users and contributors take a few minutes to
109+
review our [code of conduct][coc].
110+
103111
## License ##
104112

105113
Copyright 2017, Buoyant Inc. All rights reserved.
@@ -110,8 +118,9 @@ http://www.apache.org/licenses/LICENSE-2.0
110118
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
111119

112120
<!-- references -->
121+
[coc]: https://github.com/linkerd/linkerd/wiki/Linkerd-code-of-conduct
113122
[install-rust]: https://www.rust-lang.org/en-US/install.html
114-
[linkerd]: https://linkerd.io
123+
[linkerd]: https://github.com/linkerd/linkerd
115124
[namerd]: https://github.com/linkerd/linkerd/tree/master/namerd
116125
[p2c]: https://www.eecs.harvard.edu/~michaelm/postscripts/mythesis.pdf
117126
[rustls]: https://github.com/ctz/rustls

0 commit comments

Comments
 (0)