Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

mt-sre/jira-wrangler

Repository files navigation

jira-wrangler

A command-line helper for generating progress reports from JIRA.

Development

Pre-commit Hooks

Use ./mage hooks:enable to enable pre-commit hooks locally. Conversely, ./mage hooks:disable will disable them.

Building Locally

Use ./mage build to build release artifacts locally. Output binaries will be located in the dist folder.

Testing Locally

Use ./mage test to run unit tests locally.

Additional static checks can be run with ./mage check.

Pushing Images

To push a new jira-wrangler image from your local development environment you can use the ./mage release:image command. In order to target a specific container registry and organization the IMAGE_REGISTRY and IMAGE_ORG environment variables must be set before running the command.

Example:

IMAGE_REGISTRY=quay.io IMAGE_ORG=foobar ./mage release:image

Testing on Kubernetes

To build and apply all artifacts to a kubernetes cluster you can use the ./mage test:applydev command. The IMAGE_REGISTRY and IMAGE_ORG environment variables must be set to select where the jira-wrangler image will be pushed to and pulled from. Additionally the JIRA_TOKEN environment variable should be set to a valid personal access token for the JIRA instance you wish to connect to.

Example:

IMAGE_REGISTRY=quay.io IMAGE_ORG=foobar JIRA_TOKEN=supersecrettoken ./mage test:applydev

Note: If you are pushing jira-wrangler to a quay repository for the first time image pull may fail until the repository is made public.

License

See License.