Debian Codegraph @

CONTRIBUTING.md

raw
1 # Contributing Guidelines
2
3 source{d} go-git project is [Apache 2.0 licensed](LICENSE) and accepts
4 contributions via GitHub pull requests. This document outlines some of the
5 conventions on development workflow, commit message formatting, contact points,
6 and other resources to make it easier to get your contribution accepted.
7
8 ## Support Channels
9
10 The official support channels, for both users and contributors, are:
11
12 - [StackOverflow go-git tag](https://stackoverflow.com/questions/tagged/go-git) for user questions.
13 - GitHub [Issues](https://github.com/src-d/go-git/issues)* for bug reports and feature requests.
14
15 *Before opening a new issue or submitting a new pull request, it's helpful to
16 search the project - it's likely that another user has already reported the
17 issue you're facing, or it's a known issue that we're already aware of.
18
19
20 ## How to Contribute
21
22 Pull Requests (PRs) are the main and exclusive way to contribute to the official go-git project.
23 In order for a PR to be accepted it needs to pass a list of requirements:
24
25 - You should be able to run the same query using `git`. We don't accept features that are not implemented in the official git implementation.
26 - The expected behavior must match the [official git implementation](https://github.com/git/git).
27 - The actual behavior must be correctly explained with natural language and providing a minimum working example in Go that reproduces it.
28 - All PRs must be written in idiomatic Go, formatted according to [gofmt](https://golang.org/cmd/gofmt/), and without any warnings from [go lint](https://github.com/golang/lint) nor [go vet](https://golang.org/cmd/vet/).
29 - They should in general include tests, and those shall pass.
30 - If the PR is a bug fix, it has to include a suite of unit tests for the new functionality.
31 - If the PR is a new feature, it has to come with a suite of unit tests, that tests the new functionality.
32 - In any case, all the PRs have to pass the personal evaluation of at least one of the maintainers of go-git.
33
34 ### Branches
35
36 The `master` branch is currently used for maintaining the `v5` major release only. The accepted changes would
37 be dependency bumps, bug fixes and small changes that aren't needed for `v6`. New development should target the
38 `v6-exp` branch, and if agreed with at least one go-git maintainer, it can be back ported to `v5` by creating
39 a new PR that targets `master`.
40
41 ### Format of the commit message
42
43 Every commit message should describe what was changed, under which context and, if applicable, the GitHub issue it relates to:
44
45 ```
46 plumbing: packp, Skip argument validations for unknown capabilities. Fixes #623
47 ```
48
49 The format can be described more formally as follows:
50
51 ```
52 <package>: <subpackage>, <what changed>. [Fixes #<issue-number>]
53 ```