👍🎉 We're thrilled that you're interested in contributing! 🎉👍
Simulator
is under Apache 2.0 license and welcomes contributions through GitHub pull requests.
This document provides guidelines for contributing to Simulator
. While we adhere to certain standards to maintain quality, we welcome your PRs and are happy to collaborate to make them fit our standards. Suggestions for improving this guide are also welcome via pull requests.
- Code of Conduct
- I Don't Want To Read This Whole Thing I Just Have a Question!!!
- What Should I Know Before I Get Started?
- How Can I Contribute?
- Style Guides
All participants in this project are governed by our Code of Conduct. We expect everyone to abide by this code. Please report any unacceptable behavior to andy@control-plane.io.
We have an official message board with a detailed FAQ and where the community chimes in with helpful advice if you have questions.
We also have an issue template for questions here.
The Simulator project is centered around a single central repo - Simulator. This is the core component of the project, encompassing all functionalities of the Simulator. Feel free to explore the repository to understand more about how the Simulator works and where you might be able to contribute.
This section guides you through submitting a bug report for Simulator
. Following these guidelines helps maintainers and the
community understand your report, reproduce the behaviour, and find related reports.
Before creating bug reports, please check this list as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible. Fill out the issue template for bugs, the information it asks for helps us resolve issues faster.
Note: If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
- Perform a cursory search to see if the problem has already been reported. If it has and the issue is still open, add a comment to the existing issue instead of opening a new one
Bugs are tracked as GitHub issues. Create an issue on that repository and provide the following information by filling in the issue template here.
Explain the problem and include additional details to help maintainers reproduce the problem:
- Use a clear and descriptive title for the issue to identify the problem
- Describe the exact steps which reproduce the problem in as many details as possible. For example, start by explaining how you started
simulator
and what you did until you noticed an error or the unexpected behaviour. Additional commmands, configuration files and logs, can help us better understand the problem. - Provide specific examples to demonstrate the steps. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use Markdown code blocks.
- Describe the behaviour you observed after following the steps and point out what exactly is the problem with that behaviour
- Explain which behaviour you expected to see instead and why.
Provide more context by answering these questions:
- Did the problem start happening recently (e.g. after updating to a new version of Simulator) or was this always a problem ?
- If the problem started happening recently, can you reproduce the problem in an older version of Simulator? What is the most recent version in which the problem does not happen? You can download older versions of Simulator from the releases page
- Can you reliably reproduce the issue? If not, please provide details about how often the problem happens and under which conditions it normally happens
This section guides you through submitting an enhancement suggestion for Simulator, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion and find related suggestions.
Before creating enhancement suggestions, please check this list as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please include as many details as possible. Fill in the template feature request template, including the steps that you imagine you would take if the feature you're requesting existed.
- Perform a cursory search to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
Enhancement suggestions are tracked as GitHub issues. Create an issue on this repository and provide the following information:
- Use a clear and descriptive title for the issue to identify the suggestion
- Provide a step-by-step description of the suggested enhancement in as many details as possible
- Provide specific examples to demonstrate the steps. Include copy/pasteable snippets which you use in those examples, as Markdown code blocks
- Describe the current behaviour and explain which behaviour you expected to see instead and why ?
- Explain why this enhancement would be useful to most Simulator users and isn't something that can or should be implemented as a separate community project
- List some other tools where this enhancement exists.
- Specify which version of Simulator you're using. You can get the exact version by running
simulator version
in your terminal - Specify the name and version of the OS you're using.
Unsure where to begin contributing to Simulator
? You can start by looking through these Good First Issue
and Help Wanted
issues:
- Good First Issue issues - issues which should only require a few lines of code, and a test or two
- Help wanted issues - issues which should be a bit more involved than
Good First Issue
issues
Both issue lists are sorted by total number of comments. While not perfect, number of comments is a reasonable proxy for impact a given change will have.
- Simulator is written in Go programming language.
- Please follow the instructions here to install Go on your machine
- Please install
golangcli-lint
by following the instructions here
The process described here has several goals:
- Maintain the quality of
Simulator
- Fix problems that are important to users
- Engage the community in working toward the best possible Simulator
- Enable a sustainable system for Simulator's maintainers to review contributions
Please follow these steps to have your contribution considered by the maintainers:
- Follow all instructions in the template
- Follow the style guides
- After you submit your pull request, verify that all status checks
are passing
What if the status checks are failing?
If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.
While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional tests, or other changes before your pull request can be ultimately accepted.
- It's strongly preferred you GPG Verify your commits if you can
- Follow Conventional Commits
- Use the present tense ("add feature" not "added feature")
- Use the imperative mood ("move cursor to..." not "moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
Look at installing an .editorconfig
plugin or configure your editor to match the .editorconfig
file in the root of the
repository.
All Go code is linted with golangci-lint.
For formatting rely on gofmt
to handle styling.
All markdown code is linted with markdownlint-cli.