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

  1. Make sure you have Elixir 1.12+ installed
  2. Clone the repo
  3. Run mix deps.get
  4. 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

  1. Find or open an Issue related to the changes you're making
  2. Fork the project
  3. Create a new topic branch to contain your feature, change, or fix.
  4. Make sure all the checks are still passing: the CI system runs these checks automatically
  5. Implement your feature, change, or fix. Make sure to write tests, update and/or add documentation.
  6. Push your topic branch up to your fork.
  7. Open a Pull Request with a clear title and description, and mention the related Issue(s)