Skip to content

Commit 9b2f6f9

Browse files
authored
Add Contributing guidelines in CONTRIBUTING.md
1 parent 1c31c1b commit 9b2f6f9

File tree

1 file changed

+164
-0
lines changed

1 file changed

+164
-0
lines changed

Diff for: CONTRIBUTING.md

+164
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# Contributing to Mocker
2+
3+
As the creators, and maintainers of this project, we're glad to share our projects and invite contributors to help us stay up to date. Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
4+
5+
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
6+
7+
In general, we expect you to follow our [Code of Conduct](https://github.com/WeTransfer/Mocker/blob/master/CODE_OF_CONDUCT.md).
8+
9+
## Using the issue tracker for bug reports, feature requests and discussions
10+
11+
### First time contributors
12+
We should encourage first time contributors. A good inspiration on this can be found [here](http://www.firsttimersonly.com/). As pointed out:
13+
14+
> If you are an OSS project owner, then consider marking a few open issues with the label first-timers-only. The first-timers-only label explicitly announces:
15+
16+
> "I'm willing to hold your hand so you can make your first PR. This issue is rather a bit easier than normal. And anyone who’s already contributed to open source isn’t allowed to touch this one!"
17+
18+
By labeling issues with this `first-timers-only` label we help first time contributors step up their game and start contributing.
19+
20+
### Bug reports
21+
22+
A bug is a _demonstrable problem_ that is caused by the code in the repository.
23+
Good bug reports are extremely helpful - thank you!
24+
25+
Guidelines for bug reports:
26+
27+
1. **Use the GitHub issue search** — check if the issue has already been
28+
reported.
29+
30+
2. **Check if the issue has been fixed** — try to reproduce it using the
31+
latest `master` or development branch in the repository.
32+
33+
3. **Isolate the problem** — provide clear steps to reproduce.
34+
35+
A good bug report shouldn't leave others needing to chase you up for more
36+
information. Please try to be as detailed as possible in your report. What is
37+
your environment? What steps will reproduce the issue? What would you expect to be the outcome? All these details will help people to fix any potential bugs.
38+
39+
Example:
40+
41+
> Short and descriptive example bug report title
42+
>
43+
> A summary of the issue and the OS environment in which it occurs. If
44+
> suitable, include the steps required to reproduce the bug.
45+
>
46+
> 1. This is the first step
47+
> 2. This is the second step
48+
> 3. Further steps, etc.
49+
>
50+
> `<url>` - a link to the reduced test case, if possible
51+
>
52+
> Any other information you want to share that is relevant to the issue being
53+
> reported. This might include the lines of code that you have identified as
54+
> causing the bug, and potential solutions (and your opinions on their
55+
> merits).
56+
57+
### Feature requests
58+
59+
Feature requests are welcome. But take a moment to find out whether your idea
60+
fits with the scope and aims of the project. It's up to *you* to make a strong
61+
case to convince the project's developers of the merits of this feature. Please
62+
provide as much detail and context as possible.
63+
64+
Do check if the feature request already exists. If it does, give it a thumbs-up emoji
65+
or even comment. We'd like to avoid duplicate requests.
66+
67+
### Pull requests
68+
69+
Good pull requests - patches, improvements, new features - are a fantastic
70+
help. They should remain focused in scope and avoid containing unrelated
71+
commits.
72+
73+
**Please ask first** before embarking on any significant pull request (e.g.
74+
implementing features, refactoring code, porting to a different language),
75+
otherwise you risk spending a lot of time working on something that the
76+
project's developers might not want to merge into the project. As far as _where_ to ask,
77+
the feature request or bug report is the best place to go.
78+
79+
Please adhere to the coding conventions used throughout a project (indentation,
80+
accurate comments, etc.) and any other requirements (such as test coverage).
81+
82+
Follow this process if you'd like your work considered for inclusion in the
83+
project:
84+
85+
1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,
86+
and configure the remotes:
87+
88+
```bash
89+
# Clone your fork of the repo into the current directory
90+
git clone [email protected]:WeTransfer/Mocker.git
91+
# Navigate to the newly cloned directory
92+
cd Mocker
93+
# Assign the original repo to a remote called "upstream"
94+
git remote add upstream [email protected]:WeTransfer/Mocker.git
95+
```
96+
97+
2. If you cloned a while ago, get the latest changes from upstream:
98+
99+
```bash
100+
git checkout <dev-branch>
101+
git pull upstream <dev-branch>
102+
```
103+
104+
3. Create a new topic branch (off the main project development branch) to
105+
contain your feature, change, or fix:
106+
107+
```bash
108+
git checkout -b <topic-branch-name>
109+
```
110+
111+
4. Commit your changes in logical chunks.
112+
113+
5. Locally merge (or rebase) the upstream development branch into your topic branch:
114+
115+
```bash
116+
git pull [--rebase] upstream <dev-branch>
117+
```
118+
119+
6. Push your topic branch up to your fork:
120+
121+
```bash
122+
git push origin <topic-branch-name>
123+
```
124+
125+
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
126+
with a clear title and description.
127+
128+
### Conventions of commit messages
129+
130+
Adding features on repo
131+
132+
```bash
133+
git commit -m "feat: message about this feature"
134+
```
135+
136+
Fixing features on repo
137+
138+
```bash
139+
git commit -m "fix: message about this update"
140+
```
141+
142+
Removing features on repo
143+
144+
```bash
145+
git commit -m "refactor: message about this" -m "BREAKING CHANGE: message about the breaking change"
146+
```
147+
148+
149+
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to
150+
license your work under the same license as that used by the project.
151+
152+
### Discussions
153+
154+
We aim to keep all project discussion inside GitHub issues. This is to make sure valuable discussion is accessible via search. If you have questions about how to use the library, or how the project is running - GitHub issues are the goto tool for this project.
155+
156+
#### Our expectations on you as a contributor
157+
158+
We want contributors to provide ideas, keep the ship shipping and to take some of the load from others. It is non-obligatory; we’re here to get things done in an enjoyable way. 🎉
159+
160+
The fact that you'll have push access will allow you to:
161+
162+
- Avoid having to fork the project if you want to submit other pull requests as you'll be able to create branches directly on the project.
163+
- Help triage issues, merge pull requests.
164+
- Pick up the project if other maintainers move their focus elsewhere.

0 commit comments

Comments
 (0)