Skip to content

Commit

Permalink
fix push gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Sep 13, 2024
1 parent 867a430 commit 0fb158f
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 @@ -173,7 +173,7 @@ async def inner(data: dict):
# ignore bot users
if is_bot_user(data):
return JSONResponse(status_code=status.HTTP_200_OK, content=jsonable_encoder({"message": "success"}))
if data.get('event_type') != 'note': # not a comment
if data.get('event_type') != 'note' and data.get('object_attributes', {}): # not a comment
# ignore MRs based on title, labels, source and target branches
if not should_process_pr_logic(data, data['object_attributes'].get('title')):
return JSONResponse(status_code=status.HTTP_200_OK, content=jsonable_encoder({"message": "success"}))
Expand Down

0 comments on commit 0fb158f

Please sign in to comment.