datadog-github-pr

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 10 Imported by: 0

README

datadog-github-pr

Send a count of Pull-Request as custom metrics to Datadog

Preparation

Copy .envrc and lod it.

$ cp .envrc.sample .envrc
$ # edit .envrc
$ # source .envrc

The target repositories are specified by GITHUB_REPOSITORIES environment varibales, that should be written in org/reponame, separated by commas.

export GITHUB_REPOSITORIES="chaspy/datadog-github-pr,chaspy/favsearch"

How to run

Local
$ go run main.go
Binary

Get the binary file from Releases and run it.

Docker
$ docker run -e DATADOG_API_KEY="${DATADOG_API_KEY}" -e DATADOG_APP_KEY="${DATADOG_APP_KEY}" -e GITHUB_TOKEN="${GITHUB_TOKEN}" -e GITHUB_REPOSITORIES="${GITHUB_REPOSITORIES}" chaspy/datadog-github-pr:v0.1.1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL