Skip to content

Commit 1015aee

Browse files
committed
Add contribution file
1 parent e17e6df commit 1015aee

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# How to contribute
2+
3+
Bug-fixes and features often come from users of the Charts framework, and improving it greatly. We want to keep it as easy as possible to contribute changes that improve the experience for users all around the world. There are a few guidelines that we
4+
need contributors to follow so that we can have a chance of keeping on
5+
top of things.
6+
7+
## Simple issues and bug reports
8+
9+
If you are reporting a bug which can be observed visually, please add to your issue either:
10+
11+
* Screenshots, if the bug is easily explainable
12+
* A working sample project that we can compile, run, and immediately observe the issue
13+
14+
## Getting Started with Contributions
15+
16+
* Make sure you have a [GitHub account](https://github.com/signup/free)
17+
* Submit a ticket for your issue, assuming one does not already exist.
18+
* Clearly describe the issue including steps to reproduce when it is a bug.
19+
* Make sure you fill in the earliest version (or commit number) that you know has the issue.
20+
* Fork the repository on GitHub
21+
22+
## Making Changes
23+
24+
* Create a topic branch from where you want to base your work. This is usually the master branch.
25+
* Make commits of logical units.
26+
* Make sure your code conforms to the code style around it. It's easy, just look around!
27+
* If you have made changes back and forth, or have made merges, your commit history might look messy and hard to understand. A single issue or change should still be in one commit. So please squash those commits together and rebase them however you need to - to make our lives easier when reading it later.
28+
* Check for unnecessary whitespace with `git diff --check` before committing.
29+
* Make sure your commit messages are in the proper format.
30+
31+
````
32+
First line must be up to 50 chars (Fixes #1234)
33+
34+
The first line should be a short statement as to what have changed, and should also include an issue number, prefixed with a dash.
35+
The body of the message comes after an empty new line, and describes the changes
36+
more thoroughly, especially if there was a special case handled there,
37+
or maybe some trickery that only code wizards can understand.
38+
````
39+
40+
* Make sure you have tested your changes well.
41+
* If your changes could theoretically affect some other component or case, which you do not necessarily use, you still have to test it.
42+
* Create a Pull Request from your topic branch to the relevant branch in the main repo. If you go to the main repo of the framework, you'll see a big green button which pretty much prepares the PR for you. You just have to hit it.
43+
44+
## Making Trivial Changes
45+
46+
For changes of a trivial nature to comments and documentation, it is not
47+
always necessary to create a new ticket. In this case, it is
48+
appropriate to start the first line of a commit with '(doc)' instead of
49+
a ticket number. Even the default commit message the GitHub generates is fine with us.

0 commit comments

Comments
 (0)