Skip to content

Commit

Permalink
Update gitlab_webhook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
paolomainardi authored Aug 22, 2024
1 parent ffaf5d5 commit 61837c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr_agent/servers/gitlab_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def inner(data: dict):
return JSONResponse(status_code=status.HTTP_200_OK, content=jsonable_encoder({"message": "success"}))

log_context["sender"] = sender
should_skip_draft = get_settings().get("GITLAB.SKIP_DRAFT_MR", False)
should_skip_draft = get_settings().get("GITLAB.SKIP_DRAFT_MR", True)
if data.get('object_kind') == 'merge_request' and data['object_attributes'].get('action') in ['open', 'reopen']:
url = data['object_attributes'].get('url')
draft = data['object_attributes'].get('draft')
Expand Down

0 comments on commit 61837c6

Please sign in to comment.