Thanks for thinking of contributing to knight_witch
!
This project is dual hosted on Github and Sourcehut. You can contribute on either, depending on what you prefer.
Github follows a pull request workflow. You can contribute by forking the repository in Github, committing your changes, and opening a pull request. For more information, see the Github Docs
Sourcehut follows an email based workflow. You have the following options for submitting changes:
- If you're new to the git email workflow, or are coming from a Github-like pull request workflow, sourcehut provides an experience that will be familiar You can follow this documentation on how to use these tools to submit a patch. There's also a video tutorial here.
- If you're familiar with how
git send-email
works, and have worked with an email setup before, we accept patches that way! If you are new and would like to learn how to submit patches this way, please follow this handy guide Just send patches to the following mailing list: ~lady_interstellar/[email protected]. - If your change set is really large, say over a few hundred lines, a patch set
might be difficult to follow. In this case, you can use
git request-pull
to submit your changes. Please follow documentation on the Git docs on more information on how to do that. In general though, please first send a proposal on the mailing list before working on changes this big.
Whichever way you chose to contribute, there's a few guidelines to follow:
- For your commit messages, patch cover letters, and pull request summary/descriptions, please follow the Conventional Commits guidelines when making your commits. In addition, in general the titles shouldn't exceed 50 characters, and the descriptions should be wrapped at 72 lines, as per git conventions.
- Please ensure your git history is "clean". Feel free to follow whatever
workflow works for you while you're working on your changes, but before
submitting your changes please
rebase
orgit commit --amend
your changes into nice, atomic clean commits. If you recieve feedback, please don't make a new commit, instead change your history as if the feedback was incorporated from the start. This makes for easier reviewing and results in a cleaner final commit history. - Ensure that your changes are made up of atomic commits, where each commit compiles and has all tests passing.
- Make mistakes! It's ok to send a malformed patch, or a PR without completely sticking to the above guidelines. It might be that you're on an edge case where it actually does make sense to break the guidelines, or maybe you're not sure what to do. In either case, as long as you're receptive to feedback and are willing to make changes, any and all contributions are welcome! Please do not hesitate to fire off a request.