Skip to content

Instantly share code, notes, and snippets.

@BenLloydPearson
Created May 17, 2023 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenLloydPearson/91d97d6d8258ad2f89a791365c95dc2a to your computer and use it in GitHub Desktop.
Save BenLloydPearson/91d97d6d8258ad2f89a791365c95dc2a to your computer and use it in GitHub Desktop.
# -*- 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