Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Buildkite widget #675

Merged
merged 1 commit into from
Oct 6, 2019
Merged

Conversation

jmks
Copy link
Contributor

@jmks jmks commented Oct 3, 2019

Hi,

I've managed to cobble together a widget that checks Buildkite, a CI pipeline tool.
It shows the status of user configured pipelines and branches for those pipelines.

It looks like this:

image

using config:

    buildkite:
      enabled: true
      organizationSlug: "organization-slug"
      refreshInterval: 60
      position:
        top: 2
        left: 0
        height: 1
        width: 9
      pipelines:
        pipeline-slug-1:
          branches:
            - "master"
            - "production"
        pipeline-slug-2:
          branches:
            - "master"
            - "branch-i-want-to-monitor"

It's also my first contribution (with go too!), so feel free to point out anything not idiomatic.

The requests are a bit slow because of the size of data, so I will probably switch to the graphql api in the future.

I'll start preparing a PR for the docs as well.

@senorprogrammer senorprogrammer merged commit f56cc48 into wtfutil:master Oct 6, 2019
@senorprogrammer
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants