Debian Codegraph @

CONTRIBUTING.md

raw
1 # Contributing
2
3 Contributions are welcome through GitHub pull requests.
4
5 ## Before You Start
6
7 Small fixes and documentation improvements can go directly to a pull request.
8 Before starting a large feature, breaking change, or substantial refactoring,
9 [open an issue](https://github.com/jkroepke/openvpn-auth-oauth2/issues/new/choose)
10 to discuss the proposal with the maintainer.
11
12 Read the [developer guide](DEVELOPER.md) for an overview of the project and its
13 requirements.
14
15 Use the Go version specified in [`go.mod`](go.mod). Never update the Go version
16 in `go.mod`.
17
18 ## Required Checks
19
20 Before committing a change, run:
21
22 ```shell
23 make fmt
24 make lint
25 make test
26 ```
27
28 If Markdown files are changed, also run:
29
30 ```shell
31 make textlint
32 ```
33
34 If a check cannot run because of missing dependencies or network restrictions,
35 state that limitation in the pull request's testing notes.
36
37 GitHub security alerts are the primary mechanism for dependency CVE tracking.
38 Do not add or require `govulncheck` as a mandatory local or CI check unless the
39 maintainer explicitly requests it. It may be used as an optional diagnostic
40 when investigating a specific Go vulnerability or dependency risk.
41
42 ## Submit a Pull Request
43
44 1. Fork the repository and create a branch for your change.
45 2. Keep the change focused, and update tests and documentation when needed.
46 3. Sign off each commit with `git commit -s` to certify the
47 [Developer Certificate of Origin](https://developercertificate.org/).
48 4. Open a pull request and explain the change, its reason, and how you tested
49 it. Cite relevant files or lines and include the required check results.
50
51 Pull request titles are published in user-facing release notes. Write each title
52 as a concise description of the user-visible change and start it with `feat:`,
53 `fix:`, `docs:`, or `chore:` as required by CI. Use the `!` form, such as
54 `feat!:`, for a breaking change.
55
56 ## Documentation
57
58 Documentation must follow the
59 [textlint terminology rules](https://github.com/sapegin/textlint-rule-terminology/blob/master/terms.jsonc).