Skip to content

Commit

Permalink
changed pic and used variable
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelLinearB committed Sep 15, 2024
1 parent 291a9d9 commit fa91985
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,13 @@ Automatically apply labels to PRs that are assisted by GitHub Copilot. You can a
</div>

=== "Label by Copilot code comment"

!!! warning "Experimental"
Code generation instructions is an experimental setting wich might change in future GitHub Copilot versions.

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
![Label by Copilot comment](/automations/integrations/copilot/flag-copilot-pr/label-copilot-comment.png)

!!! info "Configuration Description"
Conditions:

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ automations:
label_copilot_pr:
# Look for the comment 'Generated by Copilot' in the added code
if:
- {{ source.diff.files | matchDiffLines(regex=r/^\+.*Generated by Copilot/, ignoreWhiteSpaces=true) | every }}
- {{ source.diff.files | matchDiffLines(regex=copilot_comment, ignoreWhiteSpaces=true) | some }}
run:
- action: add-label@v1
args:
label: '🤖 Copilot'

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

0 comments on commit fa91985

Please sign in to comment.