View as Markdown
Rules

Allow labels value to have template variables

You can now leverage templates in the label action.

This allows for example to add labels based on the branch name:

pull_request_rules:
- name: tag with branch
conditions:
- base!=main
actions:
label:
add:
- branch:{{base}}

Was this page helpful?