Debian Codegraph @

docs/CONTRIBUTING.md

raw symbols SCIP
1 ## Contributing
2
3 Welcome to the `urfave/cli` contributor docs! This goal of this document is to help those
4 interested in joining the 200+ humans who have contributed to this project over the years.
5
6 > As a general guiding principle, the current maintainers may be notified via the
7 > @urfave/cli GitHub team.
8
9 All of the current maintainers are *volunteers* who live in various timezones with
10 different scheduling needs, so please understand that your contribution or question may
11 not get a response for many days.
12
13 ### semantic versioning adherence
14
15 The `urfave/cli` project strives to strictly adhere to [semantic
16 versioning](https://semver.org/spec/v2.0.0.html). The active development branches and the
17 milestones and import paths to which they correspond are:
18
19 #### `main` branch
20
21 <https://github.com/urfave/cli/tree/main>
22
23 The majority of active development and issue management is targeting the `main` branch.
24
25 - :arrow_right: [`v3.x`](https://github.com/urfave/cli/milestone/5)
26 - :arrow_right: `github.com/urfave/cli/v3`
27
28 The `main` branch includes tooling to help with keeping track of `v3.x` series backward
29 compatibility. More details on this process are in the development workflow section below.
30
31 #### `v1-maint` branch
32
33 <https://github.com/urfave/cli/tree/v1-maint>
34
35 The `v1-maint` branch **MUST** only receive bug fixes in the `v1.22.x` series. There is no
36 strict rule regarding bug fixes to the `v3.x` or `v2.23.x` series being backported to the
37 `v1.22.x` series.
38
39 - :arrow_right: [`v1.22.x`](https://github.com/urfave/cli/milestone/11)
40 - :arrow_right: `github.com/urfave/cli`
41
42 #### `v2-maint` branch
43
44 <https://github.com/urfave/cli/tree/v2-maint>
45
46 The `v2-maint` branch **MUST** only receive bug fixes in the `v2.23.x` series. There is no
47 strict rule regarding bug fixes to the `v3.x` series being backported to the `v2.23.x`
48 series.
49
50 - :arrow_right: [`v2.23.x`](https://github.com/urfave/cli/milestone/16)
51 - :arrow_right: `github.com/urfave/cli/v2`
52
53 ### development workflow
54
55 Most of the tooling around the development workflow strives for effective
56 [dogfooding](https://en.wikipedia.org/wiki/Eating_your_own_dog_food). There is a top-level
57 `Makefile` that is maintained strictly for the purpose of easing verification of one's
58 development environment and any changes one may have introduced:
59
60 ```sh
61 make
62 ```
63
64 Running the default `make` target (`all`) will ensure all of the critical steps are run to
65 verify one's changes are harmonious in nature. The same steps are also run during the
66 [continuous integration
67 phase](https://github.com/urfave/cli/blob/main/.github/workflows/test.yml).
68
69 `gfmrun` is required to run the examples, and without it `make all` will fail.
70
71 You can find `gfmrun` here:
72
73 - [urfave/gfmrun](https://github.com/urfave/gfmrun)
74
75 To install `gfmrun`, you can use `go install`:
76
77 ```
78 go install github.com/urfave/gfmrun/cmd/gfmrun@latest
79 ```
80
81 In the event that the `v3diff` target exits non-zero, this is a signal that the public API
82 surface area has changed. If the changes are acceptable, then manually running the
83 approval step will "promote" the current `go doc` output:
84
85 ```sh
86 make v3approve
87 ```
88
89 Because the `generate` step includes updating `godoc-current.txt` and
90 `testdata/godoc-v3.x.txt`, these changes *MUST* be part of any proposed pull request so
91 that reviewers have an opportunity to also make an informed decision about the "promotion"
92 step.
93
94 #### docs output
95
96 The documentation in the `docs` directory is automatically built via `mkdocs` into a
97 static site and published when releases are pushed (see [RELEASING](./RELEASING.md)). There
98 is no strict requirement to build the documentation when developing locally, but the
99 following `make` targets may be used if desired:
100
101 ```sh
102 # install documentation dependencies with `pip`
103 make ensure-mkdocs
104 ```
105
106 ```sh
107 # build the static site in `./site`
108 make docs
109 ```
110
111 ```sh
112 # start an mkdocs development server
113 make serve-docs
114 ```
115
116 ### pull requests
117
118 Please feel free to open a pull request to fix a bug or add a feature. The @urfave/cli
119 team will review it as soon as possible, giving special attention to maintaining backward
120 compatibility. If the @urfave/cli team agrees that your contribution is in line with the
121 vision of the project, they will work with you to get the code into a mergeable state,
122 merged, and then released.
123
124 ### granting of commit bit / admin mode
125
126 Those with a history of contributing to this project will likely be invited to join the
127 @urfave/cli team. As a member of the @urfave/cli team, you will have the ability to fully
128 administer pull requests, issues, and other repository bits.
129
130 If you feel that you should be a member of the @urfave/cli team but have not yet been
131 added, the most likely explanation is that this is an accidental oversight! :sweat_smile:.
132 Please open an issue!
133
134 <!--
135 vim:tw=90
136 -->