Skip to content

Commit bb37286

Browse files
authored
Merge pull request #1267 from jtattermusch/improve_contributing
Improve contributing.md and add issue template
2 parents 2739967 + e49f6f2 commit bb37286

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

.github/ISSUE_TEMPLATE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Please answer these questions before submitting your issue.
2+
3+
### What version of gRPC are you using?
4+
5+
### What version of Go are you using (`go version`)?
6+
7+
### What operating system (Linux, Windows, …) and version?
8+
9+
### What did you do?
10+
If possible, provide a recipe for reproducing the error.
11+
12+
### What did you expect to see?
13+
14+
### What did you see instead?

CONTRIBUTING.md

Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,32 @@
11
# How to contribute
22

3-
We definitely welcome patches and contribution to grpc! Here are some guidelines
4-
and information about how to do so.
3+
We definitely welcome your patches and contributions to gRPC!
54

6-
## Sending patches
7-
8-
### Getting started
9-
10-
1. Check out the code:
11-
12-
$ go get google.golang.org/grpc
13-
$ cd $GOPATH/src/google.golang.org/grpc
14-
15-
1. Create a fork of the grpc-go repository.
16-
1. Add your fork as a remote:
17-
18-
$ git remote add fork [email protected]:$YOURGITHUBUSERNAME/grpc-go.git
19-
20-
1. Make changes, commit them.
21-
1. Run the test suite:
22-
23-
$ make test
24-
25-
1. Push your changes to your fork:
26-
27-
$ git push fork ...
28-
29-
1. Open a pull request.
5+
If you are new to github, please start by reading [Pull Request howto](https://help.github.com/articles/about-pull-requests/)
306

317
## Legal requirements
328

339
In order to protect both you and ourselves, you will need to sign the
3410
[Contributor License Agreement](https://cla.developers.google.com/clas).
3511

36-
## Filing Issues
37-
When filing an issue, make sure to answer these five questions:
38-
39-
1. What version of Go are you using (`go version`)?
40-
2. What operating system and processor architecture are you using?
41-
3. What did you do?
42-
4. What did you expect to see?
43-
5. What did you see instead?
44-
45-
### Contributing code
46-
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
12+
## Guidelines for Pull Requests
13+
How to get your contributions merged smoothly and quickly.
14+
15+
- Create **small PRs** that are narrowly focused on **addressing a single concern**. We often times receive PRs that are trying to fix several things at a time, but only one fix is considered acceptable, nothing gets merged and both author's & review's time is wasted. Create more PRs to address different concerns and everyone will be happy.
16+
17+
- For speculative changes, consider opening an issue and discussing it first. If you are suggesting a behavioral or API change, consider starting with a [gRFC proposal](https://github.com/grpc/proposal).
18+
19+
- Provide a good **PR description** as a record of **what** change is being made and **why** it was made. Link to a github issue if it exists.
20+
21+
- Don't fix code style and formatting unless you are already changing that line to address an issue. PRs with irrelevant changes won't be merged. If you do want to fix formatting or style, do that in a separate PR.
22+
23+
- Unless your PR is trivial, you should expect there will be reviewer comments that you'll need to address before merging. We expect you to be reasonably responsive to those comments, otherwise the PR will be closed after 2-3 weeks of inactivity.
24+
25+
- Maintain **clean commit history** and use **meaningful commit messages**. PRs with messy commit history are difficult to review and won't be merged. Use `rebase -i upstream/master` to curate your commit history and/or to bring in latest changes from master (but avoid rebasing in the middle of a code review).
26+
27+
- Keep your PR up to date with upstream/master (if there are merge conflicts, we can't really merge your change).
28+
29+
- **All tests need to be passing** before your change can be merged. We recommend you **run tests locally** before creating your PR to catch breakages early on.
30+
31+
- Exceptions to the rules can be made if there's a compelling reason for doing so.
32+

0 commit comments

Comments
 (0)