buildkite-accounter

command module
v0.0.0-...-c23c236 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 13 Imported by: 0

README

Buildkite Accounter

A tool for enumerating user accounts across multiple Buildkite organizations and finding duplicates either by email or by name.

Output can be presented in JSON or CSV.

Usage

go install github.com/lox/buildkite-accounter
export BUILDKITE_TOKEN=xxx # a graphql token from buildkite.com
buildkite-accounter --org-slugs=my-llama-org,my-alpaca-org --dedupe=email,name

[
  {
    "domain": "llamas.com",
    "email": "llama@llamas.com",
    "email_duplicates": [
      {
        "domain": "llamas.com",
        "email": "llama@llamas.com",
        "id": "xxx==",
        "last_auth": "2022-01-13T06:23:40.362Z",
        "name": "Mr Llama",
        "org": "my-alpaca-org",
        "role": "member"
      }
    ],
    "id": "xxx==",
    "last_auth": "2022-01-25T03:26:39.771Z",
    "name": "Mr Llama",
    "org": "my-llama-org",
    "role": "member"
  }
]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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