| 1 |
// SPDX-FileCopyrightText: 2024 Shun Sakai |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: CC-BY-4.0 |
| 4 |
|
| 5 |
= Contribution Guide |
| 6 |
:git-flow-url: https://nvie.com/posts/a-successful-git-branching-model/ |
| 7 |
:commit-messages-guide-url: https://github.com/RomuloOliveira/commit-messages-guide |
| 8 |
:conventionalcommits-url: https://www.conventionalcommits.org/en/v1.0.0/ |
| 9 |
|
| 10 |
Thank you for your interest in contributing to this project! If you would like |
| 11 |
to contribute to this project, please follow the instructions below if possible. |
| 12 |
|
| 13 |
== Branching model |
| 14 |
|
| 15 |
The branching model of this project is based on the {git-flow-url}[git-flow]. |
| 16 |
|
| 17 |
== Style guides |
| 18 |
|
| 19 |
=== Commit message |
| 20 |
|
| 21 |
Please see the {commit-messages-guide-url}[Commit messages guide] and the |
| 22 |
{conventionalcommits-url}[Conventional Commits]. |
| 23 |
|
| 24 |
== Submitting a pull request |
| 25 |
|
| 26 |
. Create a working branch from the `develop` branch. The branch name should be |
| 27 |
something other than `develop` or `main`. |
| 28 |
. Create your patch. If your change is a feature or a bugfix, please add a test |
| 29 |
case if possible. Note that the change must pass the CI. |
| 30 |
. Please update the copyright information if possible. This project is |
| 31 |
compliant with version 3.3 of the |
| 32 |
https://reuse.software/spec-3.3/[_REUSE Specification_]. |
| 33 |
https://github.com/fsfe/reuse-tool[`reuse`] is useful for updating the |
| 34 |
copyright information. |
| 35 |
. Please update the link:CHANGELOG.adoc[Changelog] if possible. |
| 36 |
. Please read and agree to follow the link:CODE_OF_CONDUCT.md[Code of Conduct]. |
| 37 |
|
| 38 |
== Development |
| 39 |
|
| 40 |
=== Useful development tools |
| 41 |
|
| 42 |
The https://github.com/casey/just[just] command runner can be used. Run |
| 43 |
`just --list` for more details. |
| 44 |
|
| 45 |
.Run tests |
| 46 |
[source,sh] |
| 47 |
---- |
| 48 |
just test |
| 49 |
---- |
| 50 |
|
| 51 |
.Run the formatter |
| 52 |
[source,sh] |
| 53 |
---- |
| 54 |
just fmt |
| 55 |
---- |
| 56 |
|
| 57 |
.Run the linter |
| 58 |
[source,sh] |
| 59 |
---- |
| 60 |
just lint |
| 61 |
---- |