GithubHelp home page GithubHelp logo

matthiaskainer / catgreen Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 346 KB

dashboard for Azure DevOps, Github & Gitlab builds that either shows your failing builds, or a random cat gif if there's nothing failing

HTML 1.02% Shell 5.03% TypeScript 93.17% CSS 0.77%

catgreen's Introduction

Catgreen Dashboard

balena deploy button

This is a dashboard that either shows your failing builds, or a random cat gif if there's nothing failing. So it's way of saying "all green" is showing a cat.

Supports currently

  • Azure DevOps
  • Github

Usage

Open your bash and type in the following commands

# setup correct node version
nvm use
# download the internet
npm install
# start the app
npm run dev
# OR start the app, but really fast
npm start
# OR start the app but in a container
docker build -f Dockerfile.dev -t catgreen . && \
    docker run -it --env-file .env -p 3000:3000 catgreen:latest

After that, open your browser on the site http://localhost:3000.

In the list of pipeline sources field, add the list of github projects or azure devops orgs. In the Filter fields add a comma-separated list of filters, following the tooltip. Hit Enter like REALLY HARD! You can also just click somewhere on the page, but hitting enter is cooler. Wait until the "wait" notification is gone, then either see a cat gif or the shame of red builds.

catgreen.mp4

behold the glory of a green dashboard!

I'm actually not sure on the red builds, because I never have those. If you do, feel free to confirm or open an issue with the json response, including all your secrets and bitcoin wallets.

Pipeline sources

Pipeline sources follow a specific convention:

pipeline-provider:repos-reference

For the different providers, that leads to the following urls:

Platform Syntax Description
Azure DevOps ado:organization/project This will load all repos from the project
Github gh:owner This will load all repos from the owner
Gitlab gl:path This will load all projects for this path

You can combine multiple sources simply by writing them as a comma separated list.

Examples

Example GitHub, https://github.com/MatthiasKainer

gh:MatthiasKainer

Example Azure DevOps: https://dev.azure.com/MatthiasKainer/private/_build

ado:MatthiasKainer/private

Both of the above in one view

gh:MatthiasKainer,ado:MatthiasKainer/private

Example gitlab, everything under gitlabs own security products

gl:gitlab-org/security-products

Filters

To filter, add the filter statement in the form

field:query

Possible fields are

  • id
  • name
  • result ("unknown" | "failed" | "success" | "running")
  • meta.triggerReason
  • meta.blame
  • link
  • timestamp

Fields can be combined and repeated by placing a special secret character (,) between them. Combining two fields will AND them, repeating one field will OR it.

Examples

Find all with the ID 1 or 2

id:1, id:2

Find all with the ID 1 or 2 and by Matthias Kainer

id:1, id:2, meta.blame:Matthias Kainer

Find all with the ID 1 or 2 that were successful and by Matthias Kainer

id:1, id:2, meta.blame:Matthias Kainer, result: success

NOTE: Results will always add the failed builds (because that's what this is about). If you toggled the "Show running builds", those will be added as well, independent of the filter.

catgreen's People

Contributors

matthiaskainer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.