Skip to content

Commit fa91985

Browse files
committed
changed pic and used variable
1 parent 291a9d9 commit fa91985

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/automations/integrations/copilot/flag-copilot-pr/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,13 @@ Automatically apply labels to PRs that are assisted by GitHub Copilot. You can a
9595
</div>
9696

9797
=== "Label by Copilot code comment"
98+
99+
!!! warning "Experimental"
100+
Code generation instructions is an experimental setting wich might change in future GitHub Copilot versions.
101+
98102
Use [Code generation instructions](https://code.visualstudio.com/updates/v1_93#code-generation-instructions) to instruct copilot to add a comment at the beginning of the AI generated code. Use gitStream automation to automatically identify PRs with this comment
99103
![Label by Copilot comment](/automations/integrations/copilot/flag-copilot-pr/label-copilot-comment.png)
104+
100105
!!! info "Configuration Description"
101106
Conditions:
102107

-38.8 KB
Loading

docs/downloads/automation-library/integrations/copilot/label_copilot_by_comment.cm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ automations:
77
label_copilot_pr:
88
# Look for the comment 'Generated by Copilot' in the added code
99
if:
10-
- {{ source.diff.files | matchDiffLines(regex=r/^\+.*Generated by Copilot/, ignoreWhiteSpaces=true) | every }}
10+
- {{ source.diff.files | matchDiffLines(regex=copilot_comment, ignoreWhiteSpaces=true) | some }}
1111
run:
1212
- action: add-label@v1
1313
args:
1414
label: '🤖 Copilot'
1515

16-
copilot_comment: "Generated by Copilot"
16+
copilot_comment: "r/^\\+.*Generated by Copilot/"

0 commit comments

Comments
 (0)