Commit 274adf3a authored by Simon Chabot's avatar Simon Chabot
Browse files

refactor(log): show merge request web url when it fails to assign a reviewer

this url may be useful for debugging and eventual fixing permission.
parent 21cdfc52da09
Pipeline #15959 passed with stage
in 30 seconds
...@@ -126,7 +126,10 @@ class ReviewAssigner: ...@@ -126,7 +126,10 @@ class ReviewAssigner:
query_data={"assignee_id":}, query_data={"assignee_id":},
) )
except GitlabHttpError: except GitlabHttpError:
print(f"ERROR: no permission to assign a reviewer to {merge_request.title}") print(
f"ERROR: no permission to assign a reviewer to {merge_request.title}"
f" ({merge_request.web_url})"
return return
self.review_states.loc[len(self.review_states)] = ( self.review_states.loc[len(self.review_states)] = (
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment