-
Notifications
You must be signed in to change notification settings - Fork 0
/
query_labels.yml
47 lines (47 loc) · 1.23 KB
/
query_labels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
- name: Generate the FIWARE Smart Data Models data from Git Repos
hosts: localhost
connection: local
vars_files:
- "{{ lookup('env', 'HOME') }}/.local/src/fiware-hackathon-2023/vaults/fiware-2023/vault"
tasks:
- name: "Get labels"
uri:
timeout: 9
url: "https://api.github.com/graphql"
return_content: true
headers:
Authorization: "bearer {{ GITHUB_TOKEN }}"
method: POST
body_format: json
body:
query: |2
query {
organization(login:"rh-impact") {
id
repository(name:"fiware-hackathon-2023") {
id
createdAt
description
homepageUrl
name
updatedAt
url
visibility
labels(query:"'SeaConditions' AND 'visualization'", first:100) {
nodes {
id
color
createdAt
description
isDefault
name
url
}
}
}
}
}
register: ROLE_LABELS_JSON
- debug:
var: ROLE_LABELS_JSON