Commit 81c326b3 by oddlittlebird Committed by Marcus Efraimsson

Update CONTRIBUTING.md (#19051)

Minor grammar edits. Mostly added periods and colons. 
Made heading capitalization consistent.
parent 3f6a37f9
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Grafana uses GitHub to manage contributions. Grafana uses GitHub to manage contributions.
Contributions take the form of pull requests that will be reviewed by the core team. Contributions take the form of pull requests that will be reviewed by the core team.
- If you are a new contributor see: [Steps to Contribute](#steps-to-contribute) - If you are a new contributor see: [Steps to Contribute](#steps-to-contribute).
- If you have a trivial fix or improvement, go ahead and create a pull request. - If you have a trivial fix or improvement, go ahead and create a pull request.
...@@ -11,19 +11,19 @@ Contributions take the form of pull requests that will be reviewed by the core t ...@@ -11,19 +11,19 @@ Contributions take the form of pull requests that will be reviewed by the core t
- Sign our [CLA](http://docs.grafana.org/contribute/cla/). - Sign our [CLA](http://docs.grafana.org/contribute/cla/).
- Make sure to follow the code style guides - Make sure to follow the code style guides:
- [Backend](https://github.com/grafana/grafana/tree/master/pkg) - [Backend](https://github.com/grafana/grafana/tree/master/pkg)
- [Frontend](https://github.com/grafana/grafana/tree/master/style_guides) - [Frontend](https://github.com/grafana/grafana/tree/master/style_guides)
## Steps to Contribute ## Steps to contribute
Should you wish to work on a GitHub issue, check first if it is not already assigned to someone. If it is free, you claim it by commenting on the issue that you want to work on it. This is to prevent duplicated efforts from contributors on the same issue. Should you wish to work on a GitHub issue, check first if it is not already assigned to someone. If it is free, you claim it by commenting on the issue that you want to work on it. This is to prevent duplicated efforts from contributors on the same issue.
Please check the [`beginner friendly`](https://github.com/grafana/grafana/issues?q=is%3Aopen+is%3Aissue+label%3A%22beginner+friendly%22) and [`help wanted`](https://github.com/grafana/grafana/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) labels to find issues that are good for getting started. If you have questions about one of the issues, with or without the tag, please comment on them and one of the core team or the original poster will clarify it. Please check the [`beginner friendly`](https://github.com/grafana/grafana/issues?q=is%3Aopen+is%3Aissue+label%3A%22beginner+friendly%22) and [`help wanted`](https://github.com/grafana/grafana/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) labels to find issues that are good for getting started. If you have questions about one of the issues, with or without the tag, please comment on them and one of the core team or the original poster will clarify it.
To setup a local development environment we recommend reading [Building Grafana from source](http://docs.grafana.org/project/building_from_source/) To setup a local development environment we recommend reading [Building Grafana from source](http://docs.grafana.org/project/building_from_source/).
## Pull Request Checklist ## Pull request checklist
Whether you are contributing or doing code review, first read and understand https://google.github.io/eng-practices/review/reviewer/ for general engineering practices around code reviews that we also use. Whether you are contributing or doing code review, first read and understand https://google.github.io/eng-practices/review/reviewer/ for general engineering practices around code reviews that we also use.
...@@ -33,26 +33,26 @@ Whether you are contributing or doing code review, first read and understand htt ...@@ -33,26 +33,26 @@ Whether you are contributing or doing code review, first read and understand htt
- Add tests relevant to the fixed bug or new feature. - Add tests relevant to the fixed bug or new feature.
### High level checks ### High-level checks
- [ ] The pull request adds value and the impact of the change is in line with [Backend](https://github.com/grafana/grafana/tree/master/pkg) or [Frontend](https://github.com/grafana/grafana/tree/master/style_guides). - [ ] The pull request adds value and the impact of the change is in line with [Backend](https://github.com/grafana/grafana/tree/master/pkg) or [Frontend](https://github.com/grafana/grafana/tree/master/style_guides).
- [ ] The pull request works the way it says it should do. - [ ] The pull request works the way it says it should do.
- [ ] The pull request closes one issue if possible and does not fix unrelated issues within the same pull request. - [ ] The pull request closes one issue if possible and does not fix unrelated issues within the same pull request.
- [ ] The pull request contains necessary tests. - [ ] The pull request contains necessary tests.
### Low level checks ### Low-level checks
- [ ] The pull request contains a title that explains it. It follows [PR and commit messages guidelines](#Pull-Requests-titles-and-message) - [ ] The pull request contains a title that explains it. It follows [PR and commit messages guidelines](#Pull-Requests-titles-and-message).
- [ ] The pull request contains necessary link(s) to issue(s). - [ ] The pull request contains necessary links to issues.
- [ ] The pull request contains commits with messages that are small and understandable. It follows [PR and commit messages guidelines](#Pull-Requests-titles-and-message) - [ ] The pull request contains commits with messages that are small and understandable. It follows [PR and commit messages guidelines](#Pull-Requests-titles-and-message).
- [ ] The pull request does not contain magic strings or numbers that could be replaced with an `Enum` or `const` instead. - [ ] The pull request does not contain magic strings or numbers that could be replaced with an `Enum` or `const` instead.
#### Bug specific checks #### Bug-specific checks
- [ ] The pull request contains `Closes: #Issue` or `Fixes: #Issue` in pull request description. - [ ] The pull request contains `Closes: #Issue` or `Fixes: #Issue` in pull request description.
- [ ] The Pull Request adds tests that replicate the fixed bug and helps avoid regressions. - [ ] The Pull Request adds tests that replicate the fixed bug and helps avoid regressions.
### Frontend specific checks ### Frontend-specific checks
- [ ] The pull request does not increase the Angular code base. - [ ] The pull request does not increase the Angular code base.
> We are in the process of migrating to React so any increment of Angular code is generally discouraged. > We are in the process of migrating to React so any increment of Angular code is generally discouraged.
...@@ -60,19 +60,19 @@ Whether you are contributing or doing code review, first read and understand htt ...@@ -60,19 +60,19 @@ Whether you are contributing or doing code review, first read and understand htt
- [ ] The pull request does not contain large React components that could easily be split into several smaller components. - [ ] The pull request does not contain large React components that could easily be split into several smaller components.
- [ ] The pull request does not contain back end calls directly from components, use actions and Redux instead. - [ ] The pull request does not contain back end calls directly from components, use actions and Redux instead.
#### Redux specific checks (skip if pull request does not contain Redux changes) #### Redux specific checks (skip if your pull request does not contain Redux changes)
- [ ] The pull request does not contain code that mutates state in reducers or thunks. - [ ] The pull request does not contain code that mutates state in reducers or thunks.
- [ ] The pull request uses helpers `actionCreatorFactory` and `reducerFactory` instead of traditional `switch statement` reducers in Redux. See [Redux framework](https://github.com/grafana/grafana/tree/master/style_guides/redux.md) for more details. - [ ] The pull request uses helpers `actionCreatorFactory` and `reducerFactory` instead of traditional `switch statement` reducers in Redux. See [Redux framework](https://github.com/grafana/grafana/tree/master/style_guides/redux.md) for more details.
- [ ] The pull request uses `reducerTester` to test reducers. See [Redux framework](https://github.com/grafana/grafana/tree/master/style_guides/redux.md) for more details. - [ ] The pull request uses `reducerTester` to test reducers. See [Redux framework](https://github.com/grafana/grafana/tree/master/style_guides/redux.md) for more details.
- [ ] The pull request does not contain code that accesses the reducers state slice directly, instead, the code uses state selectors to access state. - [ ] The pull request does not contain code that accesses the reducers state slice directly, instead, the code uses state selectors to access state.
### Pull Requests titles and message ### Pull request titles and message
Pull request titles should follow this format: `Area: Name of the change`. Pull request titles should follow this format: `Area: Name of the change`.
Titles are used to generate the changelog so they should be as descriptive as possible in one line. Titles are used to generate the changelog so they should be as descriptive as possible in one line.
Good Examples Good examples:
- `Explore: Adds Live option for supported datasources` - `Explore: Adds Live option for supported datasources`
- `GraphPanel: Don't sort series when legend table & sort column is not visible` - `GraphPanel: Don't sort series when legend table & sort column is not visible`
...@@ -87,7 +87,7 @@ The commit message of the commits in the Pull Request can still be part of the g ...@@ -87,7 +87,7 @@ The commit message of the commits in the Pull Request can still be part of the g
The Git commit title should be short, descriptive and include the Pull Request ID. The Git commit title should be short, descriptive and include the Pull Request ID.
Good Examples Good examples:
- `Explore: Live supprt in datasources (#12345)` - `Explore: Live supprt in datasources (#12345)`
- `GraphPanel: Fix legend sorting issues (#12345)` - `GraphPanel: Fix legend sorting issues (#12345)`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment