Debian Codegraph @

CONTRIBUTING.md

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # Contributing to Recast and Detour
2
3 We'd love for you to contribute to our source code and to make Recast and Detour even better than they are
4 today! Here are the guidelines we'd like you to follow:
5
6 ## Code of Conduct
7 This project adheres to the [Contributor Covenant code of conduct][code-of-conduct].
8 By participating, you are expected to honor this code.
9
10 ## Got a Question or Problem?
11
12 If you have questions about how to use Recast or Detour, please direct these to the [Google Group][groups]
13 discussion list. We are also available on [Gitter][gitter].
14
15 ## Have a question?
16 Questions about how to best use Recast, what it's capable of, and other inqueries should be directed to the [Q&A section of Github Discussions][q-and-a]. Questions submitted as Github issues will be converted to discussions.
17
18 ## Found an Issue?
19 If you find a bug in the source code or a mistake in the documentation, you can help us by
20 submitting an issue to our [GitHub Repository][github]. Even better you can submit a Pull Request
21 with a fix.
22
23 **Please see the Submission Guidelines below**.
24
25 ## Want a Feature?
26 You can request a new feature by submitting an issue to our [GitHub Repository][github]. If you
27 would like to implement a new feature then consider what kind of change it is:
28
29 * **Major Changes** that you wish to contribute to the project should be discussed first on our
30 [Google Group][groups] or in [GitHub Issues][github-issues] so that we can better coordinate our efforts, prevent
31 duplication of work, and help you to craft the change so that it is successfully accepted into the
32 project.
33 * **Small Changes** can be crafted and submitted to the [GitHub Repository][github] as a Pull Request.
34
35 ## Submission Guidelines
36
37 ### Submitting an Issue
38 Before you submit your issue search the [GitHub Issues][github-issues] and [Github Discussions][q-and-a] archives,
39 maybe your question was already answered.
40
41 If your issue appears to be a bug, and hasn't been reported, open a new issue.
42 Help us to maximize the effort we can spend fixing issues and adding new
43 features, by not reporting duplicate issues. Providing the following information will increase the
44 chances of your issue being dealt with quickly:
45
46 * **Overview of the Issue** - what type of issue is it, and why is it an issue for you?
47 * **Callstack** - if it's a crash or other runtime error, a callstack will help diagnosis
48 * **Screenshots** - for navmesh generation problems, a picture really is worth a thousand words.
49 Implement `duDebugDraw` and call some methods from DetourDebugDraw.h. Seriously, just do it, we'll definitely ask you to if you haven't!
50 * **Logs** - stdout and stderr from the console, or log files if there are any.
51 If integrating into your own codebase, be sure to implement the log callbacks in `rcContext`.
52 * **Reproduction steps** - a minimal, unambigious set of steps including input, that causes the error for you.
53 e.g. input geometry and settings you can use to input into RecastDemo to get it to fail.
54 Note: These can be saved by pressing the 9 key in RecastDemo, and the resulting .gset file can be shared (with the .obj if it is not one of the default ones).
55 * **Recast version(s) and/or git commit hash** - particularly if you can find the point at which the error first started happening
56 * **Environment** - operating system, compiler etc.
57 * **Related issues** - has a similar issue been reported before?
58 * **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
59 causing the problem (line of code or commit)
60
61 Here is a great example of a well defined issue: https://github.com/recastnavigation/recastnavigation/issues/12
62
63 **If you get help, help others. Good karma rulez!**
64
65 ### Submitting a Pull Request
66 Before you submit your pull request consider the following guidelines:
67
68 * Search [GitHub Pull Requests][github-pulls] for an open or closed Pull Request
69 that relates to your submission. You don't want to duplicate effort.
70 * Make your changes in a new git branch:
71
72 ```shell
73 git checkout -b my-fix-branch master
74 ```
75
76 * Implement your changes, **including appropriate tests if appropriate/possible**.
77 * Commit your changes using a descriptive commit message that follows our commit message conventions (see below).
78
79 ```shell
80 git commit -a
81 ```
82 Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
83
84 * Squash any work-in-progress commits (by rebasing) to form a series of commits that make sense individually.
85 Ideally the pull request will be small and focused enough that it fits sensibly in one commit.
86
87 ```shell
88 git rebase -i origin/master
89 ```
90
91 * Push your branch to GitHub:
92
93 ```shell
94 git push origin my-fix-branch
95 ```
96
97 * In GitHub, send a pull request to `recastnavigation:master`.
98 * If we suggest changes then:
99 * Make the required updates.
100 * Commit your changes to your branch (e.g. `my-fix-branch`).
101 * Squash the changes, overwriting history in your fix branch - we don't want history to include incomplete work.
102 * Push the changes to your GitHub repository (this will update your Pull Request).
103
104 If you have rebased to squash commits together, you will need to force push to update the PR:
105
106 ```shell
107 git rebase master -i
108 git push origin my-fix-branch -f
109 ```
110
111 That's it! Thank you for your contribution!
112
113 #### After your pull request is merged
114
115 After your pull request is merged, you can safely delete your branch and pull the changes
116 from the main (upstream) repository:
117
118 * Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
119
120 ```shell
121 git push origin --delete my-fix-branch
122 ```
123
124 * Check out the master branch:
125
126 ```shell
127 git checkout master -f
128 ```
129
130 * Delete the local branch:
131
132 ```shell
133 git branch -D my-fix-branch
134 ```
135
136 * Update your master with the latest upstream version:
137
138 ```shell
139 git pull --ff upstream master
140 ```
141
142 ## Git Commit Guidelines
143
144 ### Commit content
145
146 Do your best to factor commits appropriately, i.e not too large with unrelated
147 things in the same commit, and not too small with the same small change applied N
148 times in N different commits. If there was some accidental reformatting or whitespace
149 changes during the course of your commits, please rebase them away before submitting
150 the PR.
151
152 ### Commit Message Format
153 Please format commit messages as follows (based on this [excellent post](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)):
154
155 ```
156 Summarize change in 50 characters or less
157
158 Provide more detail after the first line. Leave one blank line below the
159 summary and wrap all lines at 72 characters or less.
160
161 If the change fixes an issue, leave another blank line after the final
162 paragraph and indicate which issue is fixed in the specific format
163 below.
164
165 Fix #42
166 ```
167
168 Important things you should try to include in commit messages include:
169 * Motivation for the change
170 * Difference from previous behaviour
171 * Whether the change alters the public API, or affects existing behaviour significantly
172
173
174
175 [code-of-conduct]: https://github.com/recastnavigation/recastnavigation/blob/main/CODE_OF_CONDUCT.md
176 [q-and-a]: https://github.com/recastnavigation/recastnavigation/discussions/categories/q-a
177 [github]: https://github.com/recastnavigation/recastnavigation
178 [github-issues]: https://github.com/recastnavigation/recastnavigation/issues
179 [github-pulls]: https://github.com/recastnavigation/recastnavigation/pulls
180 [gitter]: https://gitter.im/recastnavigation/chat
181 [groups]: https://groups.google.com/forum/?fromgroups#!forum/recastnavigation