feat(problem_matcher): when not enabled, dont process further
All checks were successful
Lint (Pull Request) / lint (pull_request) Successful in 9s

ref: #6
This commit is contained in:
2025-07-12 19:22:45 +09:30
parent d60383e6f6
commit dc57a65a1c
2 changed files with 12 additions and 2 deletions

View File

@ -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:

View File

@ -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)