Replies: 2 comments 4 replies
-
Mergify rules are state-based, and the state is defined via conditions. To answer your specific question, you can assign a PR as soon as it's opened and not draft. You'd write something like: - name: assign non-draft PR
conditions:
- -draft
actions:
assign:
add_users:
- foobar You might want to add slightly more conditions, but that's the idea. If you wanted to make sure the assignee is forced (which you don't want if IIUC), you'd need: - name: force assign non-draft PR to foobar
conditions:
- -draft
- assignee!=foobar
actions:
assign:
add_users:
- foobar If |
Beta Was this translation helpful? Give feedback.
-
thanks for this suggestion. I get the following issues now:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Is it possible to assign specific assignees once the PR has been opened or changed from draft? Would it re-assign again when I remove the assignee afterwards or would that not happen (I would not want that to happen, so only assign once and then forget about that PR essentially).
Beta Was this translation helpful? Give feedback.
All reactions