diff --git a/docs/automations/integrations/copilot/flag-copilot-pr/README.md b/docs/automations/integrations/copilot/flag-copilot-pr/README.md index a72e4c13..ffb1d407 100644 --- a/docs/automations/integrations/copilot/flag-copilot-pr/README.md +++ b/docs/automations/integrations/copilot/flag-copilot-pr/README.md @@ -93,4 +93,31 @@ Automatically apply labels to PRs that are assisted by GitHub Copilot. You can a [:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/copilot/label_copilot_by_tag.cm){ .md-button } + +=== "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: + + * The comment `Generated by Copilot` is added to the code in this PR + + Automation Actions: + + * Apply a `🤖 Copilot` label to the PR + + !!! example "Label Copilot by comment" + ```yaml+jinja + --8<-- "docs/downloads/automation-library/integrations/copilot/label_copilot_by_comment.cm" + ``` +