Concourse resource for GitHub issues.
Note: Currently, only checking and using it for get steps is supported.
-
hostname: Required. The GitHub hostname to be used, for examplegithub.com. -
token: Required. The GitHub access token to authenticate to the configured GitHub hostname. -
repository: Required. The GitHub repository to work with, for examplehomeport/github-issue-resource. -
labels: Optional List of labels to use in the issue list filter.
Since it is a custom resource type, it has to be configured once in the pipeline configuration.
resource_types:
- name: github-issue-resource
type: docker-image
source:
repository: ghcr.io/homeport/github-issue-resource
tag: latestOne example would be to trigger a job, if a new issue was opened in a repository.
resources:
- name: repo-issue
type: github-issue-resource
check_every: 2h
icon: alert-circle-outline
source:
hostname: github.com
token: ((github-access-token))
repository: homeport/github-issue-resource
labels: ["foobar"]
jobs:
- name: some-job
plan:
- get: repo-issue
trigger: true
- task: some-task
config:
inputs:
- name: repo-issue
run:
path: /bin/bash
args:
- -c
- |
#!/bin/bash
...Checks the currently open issues in the configured repository.
This is a no-op.
There are no parameters.
This is a no-op.
There are no parameters.