Commit 058debee by bergquist

contributing: improve guide for bug fixes

parent adf87dc4
* Link the PR to an issue for new features * Link the PR to an issue for new features
* Rebase your PR if it gets out of sync with master * Rebase your PR if it gets out of sync with master
* Follow the contribution guidelines in `CONTRIBUTING.md`
**REMOVE THE TEXT ABOVE BEFORE CREATING THE PULL REQUEST** **REMOVE THE TEXT ABOVE BEFORE CREATING THE PULL REQUEST**
...@@ -8,7 +8,7 @@ Contributions take the form of pull requests that will be reviewed by the core t ...@@ -8,7 +8,7 @@ Contributions take the form of pull requests that will be reviewed by the core t
* 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.
* If you plan to do something more involved, discuss your idea on the respective [issue](https://github.com/grafana/grafana/issues) or create a [new issue](https://github.com/grafana/grafana/issues/new) if it does not exist. This will avoid unnecessary work and surely give you and us a good deal of inspiration. * If you plan to do something more involved, discuss your idea on the respective [issue](https://github.com/grafana/grafana/issues) or create a [new issue](https://github.com/grafana/grafana/issues/new) if it does not exist. This will avoid unnecessary work and surely give you and us a good deal of inspiration.
## Steps to Contribute ## Steps to Contribute
...@@ -49,8 +49,26 @@ go test -v ./pkg/... ...@@ -49,8 +49,26 @@ go test -v ./pkg/...
* Branch from the master branch and, if needed, rebase to the current master branch before submitting your pull request. If it doesn't merge cleanly with master you may be asked to rebase your changes. * Branch from the master branch and, if needed, rebase to the current master branch before submitting your pull request. If it doesn't merge cleanly with master you may be asked to rebase your changes.
* Commits should be as small as possible, while ensuring that each commit is correct independently (i.e., each commit should compile and pass tests).
* If your patch is not getting reviewed or you need a specific person to review it, you can @-reply a reviewer asking for a review in the pull request or a comment. * If your patch is not getting reviewed or you need a specific person to review it, you can @-reply a reviewer asking for a review in the pull request or a comment.
* Add tests relevant to the fixed bug or new feature. * Add tests relevant to the fixed bug or new feature.
### New features
Commits should be as small as possible, while ensuring that each commit is correct independently (i.e., each commit should compile and pass tests).
### Bug fixes
Please make all changes in one commit if possible. Include `closes #12345` in bottom of the commit message.
A commit message for a bugfix should look something like this.
```git
avoid infinite loop in the dashboard provisioner
if one dashboard with an uid is refered to by two
provsioners each provisioner overwrite each other.
filling up dashboard_versions quite fast if using
default settings.
closes #12864
```
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