Hi there! We're excited to have you as a contributor.
Have questions about this document or anything not covered here? Create a topic using the AAP tag on the Ansible Forum.
- Things to know prior to submitting code
- Setting up your development environment
- What should I work on?
- Submitting Pull Requests
- Reporting Issues
- Getting Help
- All code submissions are done through pull requests against the
develbranch. - You must use
git commit --signofffor any commit to be merged, and agree that usage of --signoff constitutes agreement with the terms of DCO 1.1. - Take care to make sure no merge commits are in the submission, and use
git rebasevsgit mergefor this reason.- If collaborating with someone else on the same branch, consider using
--force-with-leaseinstead of--force. This will prevent you from accidentally overwriting commits pushed by someone else. For more information, see git push docs.
- If collaborating with someone else on the same branch, consider using
- If submitting a large code change, it's a good idea to create a forum topic tagged with 'aap', and talk about what you would like to do or add first. This not only helps everyone know what's going on, it also helps save time and effort, if the community decides some changes are needed.
- We ask all of our community members and contributors to adhere to the Ansible code of conduct. If you have questions, or need assistance, please reach out to our community team at codeofconduct@ansible.com
Our team uses VS Code with the Golang extension installed for our development environments. The instrustions below will show how to set up an environment using this tool set.
If you have not done so already, you'll need to fork the Receptor repo on GitHub. For more on how to do this, see Fork a Repo.
make build-all
make test
We have a "good first issue" label we put on some issues that might be a good starting point for new contributors.
Fixing bugs and updating the documentation are always appreciated, so reviewing the backlog of issues is always a good place to start.
Fixes and Features for Receptor will go through the Github pull request process. Submit your pull request (PR) against the devel branch.
Here are a few things you can do to help the visibility of your change, and increase the likelihood that it will be accepted:
- No issues when running linters/code checkers
- No issues from unit tests
- Write tests for new functionality, update/add tests for bug fixes
- Make the smallest change possible
- Write good commit messages. See How to write a Git commit message.
We like to keep our commit history clean, and will require resubmission of pull requests that contain merge commits. Use git pull --rebase, rather than
git pull, and git rebase, rather than git merge.
Sometimes it might take us a while to fully review your PR. We try to keep the devel branch in good working order, and so we review requests carefully. Please be patient.
When your PR is initially submitted the checks will not be run until a maintainer allows them to be. Once a maintainer has done a quick review of your work the PR will have the linter and unit tests run against them via GitHub Actions, and the status reported in the PR.
We welcome your feedback, and encourage you to file an issue when you run into a problem.
If you require additional assistance, please submit your question to the Ansible Forum.