Watch the Launchpad bug status changes by using https://api.launchpad.net/.
3.0K
concourse-ci's launchpad-bug-resource to watch the Launchpad bug status changes by using https://api.launchpad.net/.
resource_types:
- name: resource-launchpad-bug
type: registry-image
source:
repository: fourdollars/launchpad-bug-resource
tag: latest
defaults:
oauth_consumer_key: test
oauth_token: csjrGznX4Jq59CB8941N
oauth_token_secret: wxDNqsCLxzrmhb2K27FRGjc7hdp3zQk0b4N8cnfRzVHnJfCFlHgkGHxDk5qMPTSdQFSsllS4dwGBD18Q
or
resource_types:
- name: resource-launchpad-bug
type: registry-image
source:
repository: ghcr.io/fourdollars/launchpad-bug-resource
tag: latest
defaults:
oauth_consumer_key: test
oauth_token: csjrGznX4Jq59CB8941N
oauth_token_secret: wxDNqsCLxzrmhb2K27FRGjc7hdp3zQk0b4N8cnfRzVHnJfCFlHgkGHxDk5qMPTSdQFSsllS4dwGBD18Q
oauth_consumer_key=what_you_like ./launchpad-api to get it in ~/.config/launchpad/what_you_like.oauth_consumer_key=what_you_like ./launchpad-api to get it in ~/.config/launchpad/what_you_like.resources:
- name: bugs
icon: bug-outline
type: resource-launchpad-bug
check_every: 10m
source:
id: 1
or
resources:
- name: bugs
icon: bug-outline
type: resource-launchpad-bug
check_every: 10m
source:
project: linux
tag:
- focal
- apport-collected
combinator: all
or
resources:
- name: bugs
icon: bug-outline
type: resource-launchpad-bug
check_every: 10m
source:
project: linux
id:
- 1
- 10
- 100
tag:
- focal
- apport-collected
combinator: all
jobs:
- name: check-bugs
plan:
- get: bugs
trigger: true
- task: check
config:
platform: linux
image_resource:
type: registry-image
source:
repository: alpine
tag: latest
inputs:
- name: bugs
run:
path: sh
args:
- -exc
- |
apk add jq
for json in bugs/*.json; do
echo "= $json ="
id=$(jq -r .id < "$json")
jq -r '"Title: " + .title + "\n" + .description' < "$json"
jq -r '.entries | .[] | .bug_target_name + ": " + .status' < bugs/tasks/"$id".json
done
Content type
Image
Digest
sha256:cd8e4480a…
Size
43.7 MB
Last updated
6 months ago
docker pull fourdollars/launchpad-bug-resource