|
1 | 1 | # Contributing to linkerd-tcp # |
2 | 2 |
|
3 | | -:balloon: Thank you for using the linkerd-tcp project! |
| 3 | +:balloon: Thanks for your help improving the project! |
4 | 4 |
|
5 | 5 | ## Getting Help ## |
6 | 6 |
|
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]. |
10 | 9 |
|
11 | | -## Submitting Changes ## |
| 10 | +## Submitting a Pull Request ## |
12 | 11 |
|
13 | | -If you'd like to make a change to linkerd-tcp, you should do the |
14 | | -following: |
| 12 | +Do you have an improvement? |
15 | 13 |
|
16 | 14 | 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]. |
32 | 21 | - The branch has passed tests in CI. |
33 | 22 |
|
34 | | -### Git history ### |
| 23 | +## Committing ## |
35 | 24 |
|
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. |
40 | 29 |
|
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 ### |
45 | 31 |
|
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. |
48 | 79 |
|
49 | 80 | [cla]: https://buoyant.io/cla/ |
50 | 81 | [issue]: https://github.com/linkerd/linkerd-tcp/issues/new |
| 82 | +[members]: https://github.com/orgs/linkerd/people |
51 | 83 | [slack]: http://slack.linkerd.io/ |
0 commit comments