feat(problem_matcher): when not enabled, dont process further
All checks were successful
Lint (Pull Request) / lint (pull_request) Successful in 9s
All checks were successful
Lint (Pull Request) / lint (pull_request) Successful in 9s
ref: #6
This commit is contained in:
@ -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
|
||||
@ -116,4 +120,6 @@
|
||||
when: >
|
||||
http_get_pull_request.json.state | default('-') != 'closed'
|
||||
and
|
||||
http_get_pull_request.status == 200
|
||||
http_get_pull_request.status | default(0) == 200
|
||||
and
|
||||
not http_get_pull_request.skipped | bool | default(false)
|
||||
|
Reference in New Issue
Block a user