You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there was a better way in the API to do the following:
importgitlabimportpprintgl=gitlab.Gitlab("GITLAB_REPO", private_token="PAT_TOKEN")
project_id, mr_iid=11482, 132# MRs that block this MRblockers=gl.http_get(f"/projects/{project_id}/merge_requests/{mr_iid}/blocks")
print("BLOCKED BY:")
forbinblockers:
pprint.pprint(b)
# MRs that this MR blocksblockees=gl.http_get(f"/projects/{project_id}/merge_requests/{mr_iid}/blockees")
print("BLOCKS:")
foreinblockees:
pprint.pprint(e)
This method does work, but I was wondering if there is a higher level API that does the same? If not, is this something the community would like added?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if there was a better way in the API to do the following:
This method does work, but I was wondering if there is a higher level API that does the same? If not, is this something the community would like added?
Beta Was this translation helpful? Give feedback.
All reactions