Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 2.09 KB

README.org

File metadata and controls

58 lines (40 loc) · 2.09 KB

GitHub Status

Overview

Create and update GitHub statuses from Concourse.

Usage

Add the resource to your pipeline’s resource_types (requires Concourse 0.74.0+)

resource_types:
- name: github-status
  type: registry-image
  source:
    repository: eu.gcr.io/halfpipe-io/engineering-enablement/github-status-resource
    username: _json_key
    password: ((halfpipe-gcr.private_key))

Source Configuration

NameRequiredDefaultDescription
repoYesThe GitHub repository in user/repo format
access_tokenYesThe access token to use with the GitHub API
pathNogitRelative path to read .git/gitref

Behaviour

out Update the status for a commit

Parameters

To set a single status for the current commit of the repository specify these parameters:

NameRequiredDefaultDescription
stateYesOne of pending, success, or failure
contextNo$BUILD_PIPELINE_NAME/$BUILD_JOB_NAMEThe context for the status being updated

check Does nothing.

Parameters

  • None

in Does nothing - just echoes back stdin to stdout to allow running after put

Parameters

  • None