Created
May 17, 2023 17:21
-
-
Save BenLloydPearson/91d97d6d8258ad2f89a791365c95dc2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: yaml -*- | |
manifest: | |
version: 1.0 | |
automations: | |
gold-star: | |
# Triggered for PRs that have at least 1 test, 5 or less files, | |
# and a branch name that includes a Jira ticket prefix | |
if: | |
- {{ files | match(regex=r/(test|spec)/) | some }} | |
- {{ files | length <= 5 }} | |
- {{ branch.name | match(regex=r/[A-Za-z]{2,}-d+.*/) }} | |
run: | |
- action: add-label@v1 | |
args: | |
label: 'Best Practices ☆' | |
color: '#F4EBD0' | |
- action: add-comment@v1 | |
args: | |
comment: | | |
This PR follows our company's recommended best practices. | |
Great work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment