Skip to content

Status badges for pipelines #1698

Closed
Closed

Description

@mhuangpivotal

Feature Request

Currently we support status badges on the job level, it would be nice to have an endpoint that returns a badge for a given pipeline (/api/v1/teams/:team_name/pipelines/:pipeline_name/badge).

The pipeline status should be determined by its jobs in the following precedence:

  • pending if there is a pending/hanging job
  • failing if there is a failed job
  • errored if there is an errored job
  • aborted if there is an aborted job
  • passing if there is a successful job
  • unknown otherwise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions