Suggest Labels
Automatically suggest labels to apply to new PRs.
Configuration Description
Conditions (all must be true):
- A PR is created or updated that has no labels.
Automation Actions:
- Post a comment that suggest labels the author can apply to the PR.
Suggest Labels
# -*- mode: yaml -*-
manifest:
version: 1.0
automations:
suggest_labels:
if:
- {{ pr.labels | length == 0}}
run:
- action: add-comment@v1
args:
comment: |
All PRs must contain labels that indicate which CI/CD systems must be run. PLease update your PR to include one of the following labels: `Build: Mobile`, `Build: UI`, `Build: All`, `Build: None`
Additionally, Here are some labels you can apply to this PR that may be helpful:
* Suggest Reviewer - Use this if you aren't sure who to assign as the reviewer.
* WIP - Indicate this is a work in progress that shouldn't be merged.
Additional Resources
gitStream is a workflow automation tool that enables you to use YAML configuration files to optimize your code review process. Add context to PRs, find code experts for reviews, and automate the merge process to maximize developer productivity.
Learn More about how gitStream Works.
Related Automations:
- Estimate the amount of time it would require someone to complete a PR review.
- Flag missing Jira ticket information
- Label PRs that delete files.
- Label PRs that lack tests
- Provide information about what percent of a PR is new code.
- Request PR authors to provide screenshots in relevant PRs.
More Automations can be found on the Automation Library and Integrations pages.