assign ๐Ÿ”—

The assign action assigns users to the pull request.

Options ๐Ÿ”—

Key Name

Value Type

Default

Value Description

add_users

list of Template

The users to assign to the pull request.

remove_users

list of Template

The users to remove from assignees.

The list of users in add_users or remove_users is based on Template, you can use e.g. {{author}} to assign the pull request to its author.

Examples ๐Ÿ”—

๐Ÿ‘‰ Flexible Assignment ๐Ÿ”—

You can assign people for review based on any criteria you like. A classic is to use the name of modified files to do it:

pull_request_rules:
  - name: assign PRs with Python files modified to jd
    conditions:
      - files~=\.py$
      - -closed
    actions:
      assign:
        add_users:
          - jd