mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 04:36:49 +08:00
Fix dump when switching to PR (#4388)
* Fix dump when switching to PR Closes https://github.com/abapGit/abapGit/issues/4387 * pragma
This commit is contained in:
parent
e5540ae054
commit
eb5fdfb404
|
@ -49,7 +49,7 @@ ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CLASS ZCL_ABAPGIT_PR_ENUM_GITHUB IMPLEMENTATION.
|
CLASS zcl_abapgit_pr_enum_github IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
METHOD clean_url.
|
METHOD clean_url.
|
||||||
|
@ -112,6 +112,9 @@ CLASS ZCL_ABAPGIT_PR_ENUM_GITHUB IMPLEMENTATION.
|
||||||
rs_info-repo_json = li_response->json( ).
|
rs_info-repo_json = li_response->json( ).
|
||||||
li_response->headers( ). " for debug
|
li_response->headers( ). " for debug
|
||||||
lv_pull_url = clean_url( rs_info-repo_json->get( '/pulls_url' ) ).
|
lv_pull_url = clean_url( rs_info-repo_json->get( '/pulls_url' ) ).
|
||||||
|
IF lv_pull_url IS INITIAL OR rs_info-repo_json->get( '/message' ) = 'Not Found'.
|
||||||
|
RETURN.
|
||||||
|
ENDIF.
|
||||||
li_pulls_json = mi_http_agent->request( lv_pull_url )->json( ).
|
li_pulls_json = mi_http_agent->request( lv_pull_url )->json( ).
|
||||||
CATCH zcx_abapgit_ajson_error INTO lx_ajson.
|
CATCH zcx_abapgit_ajson_error INTO lx_ajson.
|
||||||
zcx_abapgit_exception=>raise(
|
zcx_abapgit_exception=>raise(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user