View Source Contributing and Development
API Key
You'll need a ProdOps API key
to get started. Copy config/config.example-secret.exs
to
config/config.secret.exs
and put your API key into that file.
Development Setup
- Make sure you have Elixir 1.12+ installed
- Clone the repo
- Run
mix deps.get
- Run
mix test
You can run the same checks that are in the CI pipeline, which is run via GitHub Actions:
./presubmit.sh
For convenience we recommend using this as a pre-push hook:
cp presubmit.sh .git/hooks/pre-push
You can run the library via the iex
shell to run functions through it, e.g.:
iex -S mix
iex()> ProdopsEx.Artifact.get(123, "story")
Submitting Changes
- Find or open an Issue related to the changes you're making
- Fork the project
- Create a new topic branch to contain your feature, change, or fix.
- Make sure all the checks are still passing: the CI system runs these checks automatically
- Implement your feature, change, or fix. Make sure to write tests, update and/or add documentation.
- Push your topic branch up to your fork.
- Open a Pull Request with a clear title and description, and mention the related Issue(s)