This document contains information about the contribution guidelines. Please refer to the following sections to learn more about:
Issues reported are more than welcome as they help us understand what's broken, what features are missing or even ways to enhance the product. In order to keep the process of reporting an issue organised we encourage contributors to follow the steps below:
- Double check the list of issues already opened and if the issue is not reported feel free to create a New Issue
- Providing enough context and details about the issue is critical for people to understand the problem. Hence, the following issue templates are available to help filling out the blanks.
Pull requests are appreciated, please follow the steps below when creating a new pull request:
- Create an issue that describes the problem being solved if not already created.
- Create a pull request and link to the related issue. For more information on creating a pull request, please see the Github Pull Request docs.
- The title of the PR should follow the below convention. Pick the appropriate option for the type of change. This
is important because the release notes will include this information.
- Feature Request:
[FeatureRequest: Issue #X] <PR Title>
- Bug Fixes:
[BugFix: Issue #X] <PR Title>
- Tech Debt:
[TechDebt: Issue #X] <PR Title>
- New Release:
[NewRelease] vX.Y.Z
- Feature Request:
- A pull request template is provided to help populating the PR. Please provide a clear description about the change requested.
- The title of the PR should follow the below convention. Pick the appropriate option for the type of change. This
is important because the release notes will include this information.
The best way to contribute to this repository is by creating a fork and follow the below:
- Create a feature branch prefixed with the type of change (bugfix/feature):
- Bug fix:
git checkout -b **bugfix**/my-bug-fix
- Feature requests:
git checkout -b **feature**/my-new-feature
- Bug fix:
- Commit your changes:
git commit -am 'Add some feature'
- Execute
make test-all
from the terraform_provider_api directory and make sure the exit code is clean. This will make sure that the Pull Request will have a clean build. The test-all target in the Makefile will run gofmt, govet, golint and then it will run the unit and integration tests. - Push to the branch:
git push origin <branch-name>
- Submit a pull request following the Pull request guidelines
Commits are very important to understand the history of the repo changes and also if done well greatly help the reviewing process. We are committed to keep the repository code organised and therefore expect contributors to follow some best practises as enlisted below:
- Commit related messages: A commit should contain related changes.
- Commit often: Small commits make it easier for other developers to understand the changes and also make it easier to roll back the changes if needed.
- Write good commit messages: What is good? Imagine you did not know anything about the change and had to learn more about it by reading the commit message - then write the commit message.
Changes should be accompanied by relevant tests that prove the bug fix is effective or that a feature works.
Tests should follow the format detailed in the Testing doc.
The terraform provider OpenAPI uses the following coding standards to make sure the code is maintained clean, secure and organised.
$ make fmt
$ make vet
$ make lint
$ make gosec
- Follow the go coding standards as outlined in Effective go
This repository aims to translate the latest Swagger OpenApi spec with the corresponding configuration in latest versions of Terraform. These two products are constantly evolving and adding support for new features and therefore keeping the docs updated is paramount. Any contributor should keep in mind this and update the How to accordingly based on new features added or updated.
Code on the Terraform Provider API GitHub repository is licensed under the terms of the Apache 2.0 license: https://www.apache.org/licenses/LICENSE-2.0 and https://github.com/dikhan/terraform-provider-api/blob/master/LICENSE. This license ensures a balance between openness and allowing you to use the code with minimal requirements.
All code that you write yourself and contribute to the Terraform Provider API GitHub repository must be licensed under the Apache 2.0 license. If you wrote the code as part of work for someone else (like a company), you must ensure that you have the proper rights and permissions to contribute the code under the terms of the Apache 2.0 license.
If you want to contribute any code that you did not write yourself (like pre-existing open source code), either alone or in combination with code that you did write, that code must be available under the Apache 2.0, BSD, or MIT license.
If you want to contribute code to the Terraform Provider API GitHub repository that is under any different license terms than specified above, please contact [[email protected]] to request a review.