| 1 | # Contribution |
| 2 | |
| 3 | Contribution in any way is appreciated, whether it is reporting problems, fixing bugs, implementing features, improving the documentation, etc. |
| 4 | |
| 5 | ## Opening an issue |
| 6 | |
| 7 | ### Bug reports |
| 8 | |
| 9 | When filing a bug report, fill out the [bug report template](https://github.com/ClementTsang/bottom/issues/new?assignees=&labels=bug&template=bug_report.yml). Be sure to give all the necessary details! It is _incredibly_ difficult for a maintainer to fix a bug when it cannot be reproduced, |
| 10 | so that makes it much easier to reproduce the problem! |
| 11 | |
| 12 | ### Feature requests |
| 13 | |
| 14 | Please fill out the [feature request template](https://github.com/ClementTsang/bottom/issues/new?assignees=&labels=feature&template=feature_request.yml). Remember to give details about what the feature is along with why you think this suggestion will be useful. |
| 15 | |
| 16 | ## Pull requests |
| 17 | |
| 18 | The expected workflow for a pull request is: |
| 19 | |
| 20 | 1. Fork the project. |
| 21 | 2. Make your changes. |
| 22 | 3. Make any documentation changes if necessary - if you add a new feature, it'll probably need documentation changes. See [here](https://bottom.pages.dev/nightly/contribution/documentation/) for tips on documentation. |
| 23 | 4. Commit and create a pull request to merge into the `main` branch. **Please fill out the pull request template and checklist**. |
| 24 | 5. Ask a maintainer to review your pull request. |
| 25 | - Check if the CI workflow passes. These consist of clippy lints, rustfmt checks, and basic tests. If you are a |
| 26 | first-time contributor, you may need to wait for a maintainer to let CI run. |
| 27 | - If changes are suggested or any comments are made, they should probably be addressed. |
| 28 | 6. Once it looks good, it'll be merged! Note that generally, PRs are squashed to maintain repo cleanliness, though |
| 29 | feel free to ask otherwise if that isn't preferable. |
| 30 | |
| 31 | Some other things related to making changes or pull requests: |
| 32 | |
| 33 | - Please review your code _yourself_ and test your changes before you create the PR and ask for a review. |
| 34 | - If you are adding or changing any dependency, a justification on why this is necessary must be included. |
| 35 | - Please ensure that any changes made are compatible with the license of bottom. |
| 36 | |
| 37 | For more details, see [here](https://bottom.pages.dev/nightly/contribution/issues-and-pull-requests/). |
| 38 | |
| 39 | ### Documentation |
| 40 | |
| 41 | For contributing to documentation, see [here](https://bottom.pages.dev/nightly/contribution/documentation/). |
| 42 | |
| 43 | ### Packaging |
| 44 | |
| 45 | If you want to become a package maintainer, see [here](https://bottom.pages.dev/nightly/contribution/packaging-and-distribution/) |
| 46 | for details on how to build bottom, how to generate/obtain completion files and manpages, and how to add installation instructions for the package to the README. |
| 47 | |
| 48 | ## AI Policy |
| 49 | |
| 50 | Note that any contribution, whether it be opening an issue, PRs, or commenting, should follow the [AI policy](./AI_POLICY.md). Contributions that do not follow this may be closed/hidden. |