Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 2.24 KB

CONTRIBUTING.md

File metadata and controls

54 lines (32 loc) · 2.24 KB

Contributing

Argus uses GitHub to manage reviews of pull requests.

Steps to Contribute

Should you wish to work on an issue, please claim it first by commenting on the GitHub issue that you want to work on it. This is to prevent duplicated efforts from contributors on the same issue.

For complete instructions on how to compile see: Building From Source

For quickly compiling and testing your changes do:

# For building.
make go-build
./argus
# For testing.
go test ./...

Pre-commit Hooks

If you're not making a small change, please set up and run the pre-commit checkers.

To check the commits, we use Pre-Commit-GoLang and Husky.

Pre-Commit-Golang:

  • Simply run bash .pre-commit-config.requirements.sh and the various GoLang modules required will be installed.
  • After this, run pre-commit run --all-files

Husky:

  • Simply npm install in the root directory. (This checks that the commit message matches the Conventional Commits standard).

Pull Request Checklist

  • Branch from the master branch and, if needed, rebase to the current master branch before submitting your pull request. If it doesn't merge cleanly with master you may be asked to rebase your changes.

  • Commits should be as small as possible, while ensuring that each commit is correct independently (i.e., each commit should compile and pass tests).

  • Add tests relevant to the fixed bug or new feature.