-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- mode: yaml -*- | ||
|
||
manifest: | ||
version: 1.0 | ||
|
||
automations: | ||
label_copilot: | ||
# Detect PRs that contain the text '#copilot#' in the title, description, comments, or commit messages | ||
if: | ||
- {{ copilot_tag.pr_title or copilot_tag.pr_desc or copilot_tag.pr_comments or copilot_tag.commit_messages }} | ||
# Apply a label indicating the user has adopted Copilot | ||
run: | ||
- action: add-label@v1 | ||
args: | ||
label: '🤖 Copilot' | ||
|
||
copilot_tag: | ||
pr_title: {{ pr.title | includes(regex=r/#copilot#/) }} | ||
pr_desc: {{pr.description | includes(regex=r/#copilot#/) }} | ||
pr_comments: {{ pr.comments | map(attr='content') | match(regex=r/#copilot#/) | some }} | ||
commit_messages: {{ branch.commits.messages | match(regex=r/#copilot#/) | some }} |