Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 2.06 KB

File metadata and controls

36 lines (24 loc) · 2.06 KB

Contributing

Hi there! We're thrilled that you'd like to contribute to Flashduty CLI. Your help is essential for keeping it great.

Contributions to this project are released to the public under the project's open source license.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Prerequisites for running and testing code

These are one-time installations required to test your changes locally as part of the pull request (PR) submission process.

  1. Install Go — download or via Homebrew. See go.mod for the minimum required version.
  2. Install golangci-lint v2.

Submitting a pull request

  1. Fork and clone the repository.
  2. Make sure the tests pass on your machine: go test ./...
  3. Make sure the linter passes on your machine: golangci-lint run
  4. Create a new branch: git checkout -b my-branch-name
  5. Make your change, add tests, and make sure the tests and linter still pass.
  6. Push to your fork and submit a pull request targeting the main branch.
  7. Pat yourself on the back and wait for your pull request to be reviewed and merged.

Here are a few things you can do that will increase the likelihood of your pull request being accepted:

  • Write tests.
  • Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
  • Write a good commit message.

Resources