Skip to content

Commit b977906

Browse files
committed
add templates
1 parent ded71d0 commit b977906

3 files changed

Lines changed: 204 additions & 0 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
Contribute to OxyPlot
2+
=====================
3+
4+
OxyPlot is driven by the community and contributors like you. We are excited that you're interested to help us move forward and improve OxyPlot.
5+
6+
The flow when contributing to OxyPlot is as follows:
7+
8+
1. Add issue (bug or new feature)
9+
2. Wait for issue to be tagged `you-take-it`
10+
3. Commit your changes and rebase
11+
4. Create a pull request
12+
13+
Note that your contributions must be your own work and licensed under the same terms as OxyPlot.
14+
15+
16+
## Reporting bugs
17+
18+
First, search the issue tracker to see if the bug is already there.
19+
Please use the [discussion forums](http://discussion.oxyplot.org/) if you are unsure whether it is a bug in the library or a problem in your code.
20+
When you are sure, please add defects in the issue tracker.
21+
22+
It is very helpful to get the generated code (use `CTRL+ALT+C` in the plot control) and report (`CTRL+ALT+R`) of the bug plot. You can also take a screen shot and paste it into the description.
23+
24+
Please use markdown to format your code blocks with [syntax highlighting](https://help.github.com/articles/github-flavored-markdown/#syntax-highlighting) to make it easier for everyone to read.
25+
26+
You could also use services like http://snipt.org or https://gist.github.com to share code snippets.
27+
28+
A bug report should include:
29+
30+
- used platform and tools version
31+
- used OxyPlot version
32+
- version of dependencies (e.g. Xamarin.Forms and Android SDK)
33+
- description of the issue
34+
- sample code to reproduce the issue
35+
36+
37+
## Suggesting new features
38+
39+
Please use the [discussion forums](http://discussion.oxyplot.org/) or add it directly in the issue tracker in the same way as bug reports.
40+
41+
42+
## Create your own fork
43+
44+
1. Log in to GitHub and open the [oxyplot](https://github.com/oxyplot/oxyplot/) origin repository. Click the "Fork" button to create your own fork of the repository.
45+
2. Create a clone on your local system: `git clone https://github.com/yourusername/oxyplot.git`
46+
47+
48+
## Branch
49+
50+
The repository contains two branches:
51+
52+
- `master` - the release branch (stable channel)
53+
- `develop` - the main branch with the latest development changes (pre-release channel)
54+
55+
You should base your work on the `develop` branch.
56+
57+
See [A successful git branching model](http://nvie.com/posts/a-successful-git-branching-model/) for more information about the branching model in use.
58+
59+
Create a branch for the bugfix/feature you want to work on: `git branch bugfix-some-error`
60+
61+
Checkout the branch: `git checkout bugfix-some-error`
62+
63+
64+
## Commit your changes
65+
66+
Before you start committing, please define your [full name](https://help.github.com/articles/setting-your-username-in-git/) and [e-mail](https://help.github.com/articles/setting-your-email-in-git/) address in git.
67+
68+
Please follow the style of the other messages in the commit history. Explain the intentions for the change and include the issue number. Include the issue number in the commit message, e.g. "#9945".
69+
70+
Please follow the coding-style:
71+
72+
- write StyleCop compliant code
73+
- include XML comments for all methods, properties and fields
74+
- do not use #regions
75+
- use linq method syntax (not query syntax)
76+
- keep it simple
77+
78+
To commit your changes, use the git command: `git commit -m <msg>`
79+
80+
When you are ready to make a pull request, please
81+
82+
- [Rebase](https://git-scm.com/docs/git-rebase) to the latest commit of the origin
83+
- [Squash](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html) each logical change to a single commit
84+
85+
More info about rebasing
86+
87+
- https://git-scm.com/book/en/v2/Git-Branching-Rebasing
88+
- https://blog.sourcetreeapp.com/2012/08/21/merge-or-rebase/
89+
- http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
90+
- https://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one/
91+
- https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
92+
- https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase-i
93+
94+
Finally, push your commits: `git push`
95+
96+
97+
## Requirements for a pull request
98+
99+
- Include examples or unit tests for the change / new feature
100+
- Update the CHANGELOG.md file
101+
- Update the CONTRIBUTORS and AUTHORS files if you are not already listed there
102+
- Commits are rebased and squashed
103+
104+
105+
## Creating a pull request
106+
107+
- Open the GitHub page for your fork and create a "Pull Request" (PR)
108+
- Include the issue number in the pull request *comment* (not in the *title* where it will not be linked!)
109+
110+
111+
## Merging
112+
113+
When the PR is submitted, Appveyor will build the code and report if the build was successful.
114+
A team member will then review the PR, and merge the branch if everything looks OK.
115+
116+
If there are some issues with the PR, you must
117+
- update your code and commit changes
118+
- rebase and squash again
119+
- force push: `git push -f`
120+
121+
The PR will be updated automatically when you push your changes.
122+
123+
124+
## Contributing to the documentation
125+
126+
The documentation is located in the [docs](https://github.com/oxyplot/docs) repository.
127+
See the README.md file for information about how to build the documentation.
128+
Please contribute by creating pull requests!
129+
130+
131+
## Contributing to the website
132+
133+
The source of the [oxyplot.org](http://oxyplot.org) web site can be found in the [oxyplot.github.io](http://github.com/oxyplot/oxyplot.github.io) repository.
134+
Please contribute by creating pull requests!
135+
136+
The web-site is built by [GitHub](http://github.com/) with [Jekyll](http://jekyllrb.com/).
137+
138+
139+
## Common rules
140+
141+
To prevent the issue (backlog) list to grow indefinitely, an issue will be closed when you are not responding to requests by a project developer.
142+
We need your help, so we will not close an issue by desire. But when you are not answering to a request by for a month we will close the issue.
143+
If this happens in accident, feel free to re-open the issue...
144+
145+
The issue reporter can close the issue because:
146+
147+
- he/she verified the fix/change
148+
- found out that it is not an OxyPlot issue but some problem in his/her code
149+
150+
In case the reporter does not respond to a request:
151+
152+
- a project developer is allowed to close the issue (after one month)
153+
154+
Someone can take over the issue from the reporter, when:
155+
156+
- he/she can reproduce the issue
157+
- has some sample code
158+
- has more time/information to assist in the resolution
159+
- responds to requests by a project developer

.github/ISSUE_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
*IF BUG, INCLUDE THIS PART:*
2+
3+
### Steps to reproduce
4+
5+
1.
6+
2.
7+
3.
8+
9+
Platform:
10+
.NET version:
11+
12+
### Expected behaviour
13+
14+
Tell us what should happen
15+
16+
### Actual behaviour
17+
18+
Tell us what happens instead
19+
Can you also include a screen shot?
20+
21+
22+
23+
*IF IT IS A NEW FEATURE REQUEST, INCLUDE THIS PART:*
24+
25+
### Feature description
26+
27+
Write a description of the feature. How should it work? How should it look?
28+
Include some graphics if this could help!
29+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Fixes # .
2+
3+
### Checklist
4+
5+
- [ ] I have included examples or tests
6+
- [ ] I have updated the change log
7+
- [ ] I am listed in the CONTRIBUTORS file
8+
- [ ] I have cleaned up the commit history (use rebase and squash)
9+
10+
### Changes proposed in this pull request:
11+
12+
-
13+
-
14+
-
15+
16+
@oxyplot/admins

0 commit comments

Comments
 (0)