Compare commits
1 Commits
90ae26cd16
...
311676621c
Author | SHA1 | Date | |
---|---|---|---|
311676621c |
@ -205,7 +205,11 @@ for line in sys.stdin:
|
||||
|
||||
if not NFC_PROBLEM_MATCHER:
|
||||
|
||||
sys.exit(2)
|
||||
print(json.dumps({
|
||||
'pull_request': ''
|
||||
}, indent=4))
|
||||
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
if not results:
|
||||
|
@ -94,11 +94,15 @@
|
||||
validate_certs: false
|
||||
no_log: "{{ disable_logging }}"
|
||||
register: http_get_pull_request
|
||||
when: >
|
||||
annotations.pull_request | string
|
||||
|
||||
|
||||
- name: Trace - Display Pull Request State
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ http_get_pull_request.json.state | default('No PR found') }}"
|
||||
when: >
|
||||
not http_get_pull_request.skipped | bool | default(false)
|
||||
|
||||
|
||||
- name: Post review
|
||||
@ -117,3 +121,5 @@
|
||||
http_get_pull_request.json.state | default('-') != 'closed'
|
||||
and
|
||||
http_get_pull_request.status == 200
|
||||
and
|
||||
not http_get_pull_request.skipped | bool | default(false)
|
||||
|
Reference in New Issue
Block a user