Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 2.43 KB

README.md

File metadata and controls

59 lines (43 loc) · 2.43 KB

ol-concourse-github-issues

A Concourse resource to manipulate Github Issues

Install (TODO: MORE DETAIL NEEDED)

You can find the resource on dockerhub

Usage

Your pipeline should include a source block like:

auth_method: "app" or "token". Defaults to token if not specified
access_token: a personal Github access token. Required if auth method == app
app_id: a Github application ID. Required if auth method == app
app_installation_id: a Github application installation ID. Required if auth_method == app
private_ssh_key: The complete application RSA key generated for a Github application. Required if auth_method == app
repository: Github repo in which to detect / create issues
issue_state: One of "open" or "closed". Defaults to "closed"
issue_prefix: prefix issue titles must contain to match
labels: labels required to match
assignees: optional assignees list to use when creating issues

You can find example pipeline definitions for:

App / Token Permissions

  • Token: project, read:org, repo
  • Application Installation: Repository->Contents->Read and Write, Respository->Issues->Read and Write, Repository->Metadata->Read-only and Repository->Pull requests->Read and Write

Documentation on setting up a personal access token can be found here Documentation on setting up a github application can be found here, here and here

Building

With Docker:

docker build --platform=linux/amd64 .

With Earthly:

On Apple Silicon, first follow instructions here

earthly --platform=linux/amd64 +build

Testing

poetry install
poetry run python3 -m concoursetools . -r concourse.py
check < payload.json