Skip to content

Commit a4e121f

Browse files
committed
skip message creation when MR is initialy draft, removing draft status will post the message
1 parent 6c86245 commit a4e121f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webhook/merge_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ async def merge_request(
183183
in (
184184
"closed",
185185
"merged",
186-
),
186+
)
187+
or mr.object_attributes.draft
188+
or mr.object_attributes.work_in_progress,
187189
)
188190

189191
if mr.object_attributes.action in ("merge", "close") or mr.object_attributes.state in (

0 commit comments

Comments
 (0)