|
| 1 | +# Contributing Guidelines |
| 2 | + |
| 3 | +The following is a set of guidelines for contributing to the NGINX Plus Go SDK. We really appreciate that you are considering contributing! |
| 4 | + |
| 5 | +#### Table Of Contents |
| 6 | + |
| 7 | +[Ask a Question](#ask-a-question) |
| 8 | + |
| 9 | +[Getting Started](#getting-started) |
| 10 | + |
| 11 | +[Contributing](#contributing) |
| 12 | + |
| 13 | +[Style Guides](#style-guides) |
| 14 | + * [Git Style Guide](#git-style-guide) |
| 15 | + * [Go Style Guide](#go-style-guide) |
| 16 | + |
| 17 | +[Code of Conduct](#code-of-conduct) |
| 18 | + |
| 19 | +## Ask a Question |
| 20 | + |
| 21 | +We will have a public forum soon where you can come and ask questions and have a discussion. For now please open an Issue on GitHub with the label `question`. |
| 22 | + |
| 23 | + |
| 24 | +## Getting Started |
| 25 | + |
| 26 | +Read the usage and testing steps in the [README](README.md). |
| 27 | + |
| 28 | + |
| 29 | +## Contributing |
| 30 | + |
| 31 | +### Report a Bug |
| 32 | + |
| 33 | +To report a bug, open an issue on GitHub with the label `bug` using the available bug report issue template. Please ensure the issue has not already been reported. |
| 34 | + |
| 35 | +### Suggest an Enhancement |
| 36 | + |
| 37 | +To suggest an enhancement, please create an issue on GitHub with the label `enhancement` using the available feature issue template. |
| 38 | + |
| 39 | +### Open a Pull Request |
| 40 | + |
| 41 | +* Fork the repo, create a branch, submit a PR when your changes are tested and ready for review |
| 42 | +* You will be asked to fill in [our pull request template](.github/ISSUE_TEMPLATE/PULL_REQUEST_TEMPLATE.md) |
| 43 | + |
| 44 | +Note: if you’d like to implement a new feature, please consider creating a feature request issue first to start a discussion about the feature. |
| 45 | + |
| 46 | +## Style Guides |
| 47 | + |
| 48 | +### Git Style Guide |
| 49 | + |
| 50 | +* Keep a clean, concise and meaningful git commit history on your branch, rebasing locally and squashing before submitting a PR |
| 51 | +* Follow the guidelines of writing a good commit message as described here https://chris.beams.io/posts/git-commit/ and summarised in the next few points |
| 52 | + * In the subject line, use the present tense ("Add feature" not "Added feature") |
| 53 | + * In the subject line, use the imperative mood ("Move cursor to..." not "Moves cursor to...") |
| 54 | + * Limit the subject line to 72 characters or less |
| 55 | + * Reference issues and pull requests liberally after the subject line |
| 56 | + * Add more detailed description in the body of the git message (`git commit -a` to give you more space and time in your text editor to write a good message instead of `git commit -am`) |
| 57 | + |
| 58 | +### Go Style Guide |
| 59 | + |
| 60 | +* Run `gofmt` over your code to automatically resolve a lot of style issues. Most editors support this running automatically when saving a code file. |
| 61 | +* Run `go lint` and `go vet` on your code too to catch any other issues. |
| 62 | +* Follow this guide on some good practice and idioms for Go - https://github.com/golang/go/wiki/CodeReviewComments |
| 63 | + |
| 64 | +## Code of Conduct |
| 65 | + |
| 66 | +This project and everyone participating in it is governed by this code. |
| 67 | + |
| 68 | +### Our Pledge |
| 69 | + |
| 70 | +In the interest of fostering an open and welcoming environment, we as |
| 71 | +contributors and maintainers pledge to making participation in our project and |
| 72 | +our community a harassment-free experience for everyone, regardless of age, body |
| 73 | +size, disability, ethnicity, sex characteristics, gender identity and expression, |
| 74 | +level of experience, education, socio-economic status, nationality, personal |
| 75 | +appearance, race, religion, or sexual identity and orientation. |
| 76 | + |
| 77 | +### Our Standards |
| 78 | + |
| 79 | +Examples of behavior that contributes to creating a positive environment |
| 80 | +include: |
| 81 | + |
| 82 | +* Using welcoming and inclusive language |
| 83 | +* Being respectful of differing viewpoints and experiences |
| 84 | +* Gracefully accepting constructive criticism |
| 85 | +* Focusing on what is best for the community |
| 86 | +* Showing empathy towards other community members |
| 87 | + |
| 88 | +Examples of unacceptable behavior by participants include: |
| 89 | + |
| 90 | +* The use of sexualized language or imagery and unwelcome sexual attention or |
| 91 | + advances |
| 92 | +* Trolling, insulting/derogatory comments, and personal or political attacks |
| 93 | +* Public or private harassment |
| 94 | +* Publishing others' private information, such as a physical or electronic |
| 95 | + address, without explicit permission |
| 96 | +* Other conduct which could reasonably be considered inappropriate in a |
| 97 | + professional setting |
| 98 | + |
| 99 | +### Our Responsibilities |
| 100 | + |
| 101 | +Project maintainers are responsible for clarifying the standards of acceptable |
| 102 | +behavior and are expected to take appropriate and fair corrective action in |
| 103 | +response to any instances of unacceptable behavior. |
| 104 | + |
| 105 | +Project maintainers have the right and responsibility to remove, edit, or |
| 106 | +reject comments, commits, code, wiki edits, issues, and other contributions |
| 107 | +that are not aligned to this Code of Conduct, or to ban temporarily or |
| 108 | +permanently any contributor for other behaviors that they deem inappropriate, |
| 109 | +threatening, offensive, or harmful. |
| 110 | + |
| 111 | +### Scope |
| 112 | + |
| 113 | +This Code of Conduct applies both within project spaces and in public spaces |
| 114 | +when an individual is representing the project or its community. Examples of |
| 115 | +representing a project or community include using an official project e-mail |
| 116 | +address, posting via an official social media account, or acting as an appointed |
| 117 | +representative at an online or offline event. Representation of a project may be |
| 118 | +further defined and clarified by project maintainers. |
| 119 | + |
| 120 | +### Enforcement |
| 121 | + |
| 122 | +Instances of abusive, harassing, or otherwise unacceptable behavior may be |
| 123 | +reported by contacting the project team at [mailto:[email protected]]. All |
| 124 | +complaints will be reviewed and investigated and will result in a response that |
| 125 | +is deemed necessary and appropriate to the circumstances. The project team is |
| 126 | +obligated to maintain confidentiality with regard to the reporter of an incident. |
| 127 | +Further details of specific enforcement policies may be posted separately. |
| 128 | + |
| 129 | +Project maintainers who do not follow or enforce the Code of Conduct in good |
| 130 | +faith may face temporary or permanent repercussions as determined by other |
| 131 | +members of the project's leadership. |
| 132 | + |
| 133 | +### Attribution |
| 134 | + |
| 135 | +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, |
| 136 | +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html |
| 137 | + |
| 138 | +[homepage]: https://www.contributor-covenant.org |
0 commit comments