Skip to content

Commit b1aa509

Browse files
committed
github: Fill in more contributing doc. Add issue/PR templates.
[ci skip] cherry picks 3d6309d a317ea0
1 parent 60842fc commit b1aa509

File tree

3 files changed

+124
-18
lines changed

3 files changed

+124
-18
lines changed

CONTRIBUTING.md

+86-18
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,101 @@ Contributing
33

44
Thank you for your interest in contributing!
55

6+
67
Issues
78
------
89

9-
When reporting a bug, please include:
10+
Hopefully you are arriving from
11+
[the documentation](https://wpull.readthedocs.io/). If not, please take
12+
a moment to read it. Updated documentation is provided on "latest"
13+
version.
14+
15+
When reporting a bug or asking a question, please search to see if your
16+
bug report exists or your question has been already answered.
17+
18+
When opening an issue, include lots of details about your problem and
19+
information that we can use to reproduce the problem. There are many
20+
resources that describe how to file a good bug report such as
21+
<https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines>.
1022

11-
1. What you want, what you expect, what happened.
12-
2. The command or website causes the problem
13-
3. Operating system
14-
4. Python version
15-
5. Wpull version
16-
6. A copy and paste of what Wpull prints out
23+
Concisely, we need to know:
24+
25+
* What you want
26+
* What you expect
27+
* What happened
28+
* Commands to reproduce the issue
29+
* Program versions
30+
* Your computer details
31+
* Debugging output
32+
33+
When you file an issue, a template should appear for you to fill out.
1734

1835

1936
Pull requests
2037
-------------
2138

22-
Before making a pull request, please review the following:
39+
If you are planning to fix a bug or add a feature, please take some
40+
time to review this section.
41+
42+
43+
### Code convention
44+
45+
Please follow the [PEP8](https://www.python.org/dev/peps/pep-0008/)
46+
conventions whenever possible.
47+
48+
If the current code does not follow it, please do not make
49+
a pull request that formats all the code with a program automatically.
50+
Instead, incrementally make the corrections that are affected in your
51+
bug fixes or features. This will help make Git's blame feature easier
52+
use.
53+
54+
55+
### Commits and commit messages
56+
57+
Please don't PR a single huge commit or hundreds of commits. Do your
58+
best to group changes logically.
59+
60+
Give your commit messages meaningful descriptions. Make the first line
61+
a short title describing the changes and then add an optional paragraph
62+
describing why you made those changes.
63+
64+
65+
### Branch model
66+
67+
This project is still small but we intend to follow
68+
[nvie's git branching model]
69+
(http://nvie.com/posts/a-successful-git-branching-model/) to structure
70+
the Git repository in the future. This means:
71+
72+
* The stable code is located on the `master` branch which is the default.
73+
* The current work of focus is located on the `develop` branch.
74+
* There is currently no release branches.
75+
* Changes flow into the `develop` branch, then the `master` branch.
76+
77+
Because of the branching model, there are two options of branching:
78+
79+
* From a stable point, that is the `master` branch
80+
* From an active point, that is a the `develop` branch
81+
82+
If you are making a small bug fix and are new to this project, we
83+
suggest branching off the `master` branch so we can integrate your
84+
changes properly. Otherwise, branch off the `develop` branch.
85+
86+
If you are adding a feature, please branch from the `develop` branch.
87+
If you branch from `master`, your changes may not merge anymore on the
88+
next release. If needed, file an issue to discuss the roadmap of the
89+
feature to avoid any rejection and disappointment.
90+
91+
One branch per bug/feature. Don't stack PR on top of other PR branches!
92+
2393

24-
1. Your branch is branched from the `master` branch or a release tag.
25-
2. You want to merge into the `develop` branch.
26-
3. Commits are logical units of changes.
27-
4. Commit messages are usefully descriptive.
28-
5. Unit tests are modified or appended as needed.
29-
6. Inline documentation is accurate.
30-
7. A rationale for the pull request is provided.
94+
### Making the PR
3195

32-
We follow [nvie's git branching
33-
model](http://nvie.com/posts/a-successful-git-branching-model/) and
34-
PEP8 code style.
96+
When you file a pull request, a template will appear reminding you
97+
of this document. It will also remind you to:
3598

99+
* Update or add unit tests if needed.
100+
* Update or add documentation/comments if needed.
101+
* Describe *what* you changed and *why* you changed them.
102+
* Set GitHub merge options to merge into `develop` if you branch
103+
from `develop`.

ISSUE_TEMPLATE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Please fill this or delete as needed. You can use toolbar and preview feature located above this textbox.
2+
3+
*What I wanted:* Describe what you want to achieve here
4+
5+
*What I expect:* Describe how you think the program will work
6+
7+
*What happened:* Describe what actually happened instead
8+
9+
*The command or website causes the problem:* Copy the options provided to Wpull here
10+
11+
*Operating system:* Write your OS name here such as Windows 10/Ubuntu Linux 14.04 32-bit/OS X 10.10
12+
13+
*Python version:* What does `python --version` say?
14+
15+
*Wpull version:* What does `wpull --version` say?
16+
17+
*Log/Output:* Put a pastebin link here that does not expire or
18+
19+
```
20+
Copy a snippet of the log or what Wpull outputs here
21+
```

PULL_REQUEST_TEMPLATE.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Please fill this or delete as needed:
2+
3+
This pull request fixes #N (where N is the issue number).
4+
5+
I remembered to:
6+
7+
* [ ] Update or add unit tests if needed
8+
* [ ] Update or add documentation/comments if needed
9+
* [ ] Made sure stray files or whitespace didn't get committed
10+
* [ ] If significant changes, branch from `develop` and set to merge into `develop`
11+
* [ ] Read the guidelines for contributing
12+
13+
Changes:
14+
15+
* Fill in change here because reason here
16+
* Fill in change here because reason here
17+
* Fill in change here because reason here

0 commit comments

Comments
 (0)