mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-16 18:29:18 +08:00
c296f4fed6
* When route cannot be found on chi, go to macaron * Stick chi version to 1.5.0 * Follow router log setting
32 lines
1.0 KiB
Markdown
Vendored
32 lines
1.0 KiB
Markdown
Vendored
# Contributing
|
|
|
|
## Prerequisites
|
|
|
|
1. [Install Go][go-install].
|
|
2. Download the sources and switch the working directory:
|
|
|
|
```bash
|
|
go get -u -d github.com/go-chi/chi
|
|
cd $GOPATH/src/github.com/go-chi/chi
|
|
```
|
|
|
|
## Submitting a Pull Request
|
|
|
|
A typical workflow is:
|
|
|
|
1. [Fork the repository.][fork] [This tip maybe also helpful.][go-fork-tip]
|
|
2. [Create a topic branch.][branch]
|
|
3. Add tests for your change.
|
|
4. Run `go test`. If your tests pass, return to the step 3.
|
|
5. Implement the change and ensure the steps from the previous step pass.
|
|
6. Run `goimports -w .`, to ensure the new code conforms to Go formatting guideline.
|
|
7. [Add, commit and push your changes.][git-help]
|
|
8. [Submit a pull request.][pull-req]
|
|
|
|
[go-install]: https://golang.org/doc/install
|
|
[go-fork-tip]: http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html
|
|
[fork]: https://help.github.com/articles/fork-a-repo
|
|
[branch]: http://learn.github.com/p/branching.html
|
|
[git-help]: https://guides.github.com
|
|
[pull-req]: https://help.github.com/articles/using-pull-requests
|