github.com/twilio/twilio-go@v1.20.1/CONTRIBUTING.md (about) 1 # Contributing to `twilio-go` 2 3 We'd love for you to contribute to our source code and to make `twilio-go` 4 even better than it is today! Here are the guidelines we'd like you to follow: 5 6 - [Code of Conduct](#coc) 7 - [Question or Problem?](#question) 8 - [Issues and Bugs](#issue) 9 - [Feature Requests](#feature) 10 - [Documentation fixes](#docs) 11 - [Submission Guidelines](#submit) 12 - [Coding Rules](#rules) 13 14 15 ## <a name="coc"></a> Code of Conduct 16 17 Help us keep `twilio-go` open and inclusive. Please be kind to and considerate 18 of other developers, as we all have the same goal: make `twilio-go` as good as 19 it can be. 20 21 ## <a name="question"></a> Got an API/Product Question or Problem? 22 23 If you have questions about how to use `twilio-go`, please see our 24 [docs](./README.md), and if you don't find the answer there, please contact 25 [Twilio Support](https://www.twilio.com/help/contact) with any issues you have. 26 27 ## <a name="issue"></a> Found an Issue? 28 29 If you find a bug in the source code or a mistake in the documentation, you can 30 help us by submitting [an issue][issue-link]. This helper library was generated by leveraging [OpenAPI Generator](https://openapi-generator.tech) and the specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). If the issue is in the spec, please submit an issue there. 31 32 **Please see the [Submission Guidelines](#submit) below.** 33 34 ## <a name="feature"></a> Want a Feature? 35 36 You can request a new feature by submitting an issue to our 37 [GitHub Repository][github]. If you would like to implement a new feature then 38 consider what kind of change it is: 39 40 * **Major Changes** that you wish to contribute to the project should be 41 discussed first with `twilio-go` contributors in an issue or pull request so 42 that we can develop a proper solution and better coordinate our efforts, 43 prevent duplication of work, and help you to craft the change so that it is 44 successfully accepted into the project. 45 * **Small Changes** can be crafted and submitted to the 46 [GitHub Repository][github] as a Pull Request. 47 48 ## <a name="docs"></a> Want a Doc Fix? 49 50 If you want to help improve the docs in the helper library, it's a good idea to 51 let others know what you're working on to minimize duplication of effort. Create 52 a new issue (or comment on a related existing one) to let others know what 53 you're working on. 54 55 For large fixes, please build and test the documentation before submitting the 56 PR to be sure you haven't accidentally introduced layout or formatting issues. 57 58 ## <a name="submit"></a> Submission Guidelines 59 60 ### Submitting an Issue 61 Before you submit your issue search the archive, maybe your question was already 62 answered. 63 64 If your issue appears to be a bug, and hasn't been reported, open a new issue. 65 Help us to maximize the effort we can spend fixing issues and adding new 66 features by not reporting duplicate issues. Providing the following information 67 will increase the chances of your issue being dealt with quickly: 68 69 * **Overview of the Issue** - if an error is being thrown a non-minified stack 70 trace helps 71 * **Motivation for or Use Case** - explain why this is a bug for you 72 * **`twilio-go` Version(s)** - is it a regression? 73 * **Operating System (if relevant)** - is this a problem with all systems or 74 only specific ones? 75 * **Reproduce the Error** - provide an isolated code snippet or an unambiguous 76 set of steps. 77 * **Related Issues** - has a similar issue been reported before? 78 * **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point 79 to what might be causing the problem (line of code or commit) 80 81 **If you get help, help others. Good karma rules!** 82 83 ### Submitting a Pull Request 84 Before you submit your pull request consider the following guidelines: 85 86 * Search [GitHub][github] for an open or closed Pull Request that relates to 87 your submission. You don't want to duplicate effort. 88 * Make your changes in a new git branch: 89 90 ```shell 91 git checkout -b my-fix-branch main 92 ``` 93 94 * Create your patch, **including appropriate test cases**. 95 * Follow our [Coding Rules](#rules). 96 * Run the full `twilio-go` test suite (aliased by `make test`), and ensure 97 that all tests pass. 98 * Commit your changes using a descriptive commit message. 99 100 ```shell 101 git commit -a 102 ``` 103 Note: the optional commit `-a` command line option will automatically "add" 104 and "rm" edited files. 105 106 * Build your changes locally to ensure all the tests pass: 107 108 ```shell 109 make test 110 ``` 111 112 * Push your branch to GitHub: 113 114 ```shell 115 git push origin my-fix-branch 116 ``` 117 118 In GitHub, send a pull request to `twilio-go:main`. 119 If we suggest changes, then: 120 121 * Make the required updates. 122 * Re-run the `twilio-go` test suite to ensure tests are still passing. 123 * Commit your changes to your branch (e.g. `my-fix-branch`). 124 * Push the changes to your GitHub repository (this will update your Pull Request). 125 126 That's it! Thank you for your contribution! 127 128 #### After your pull request is merged 129 130 After your pull request is merged, you can safely delete your branch and pull 131 the changes from the main (upstream) repository. 132 133 ## <a name="rules"></a> Coding Rules 134 135 To ensure consistency throughout the source code, keep these rules in mind as 136 you are working: 137 138 * All features or bug fixes **must be tested** by one or more tests. 139 * All classes and methods **must be documented**. 140 141 142 [issue-link]: https://github.com/twilio/twilio-go/issues/new 143 [github]: https://github.com/twilio/twilio-go