You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/automations/integrations/copilot/flag-copilot-pr/README.md
+1-42Lines changed: 1 addition & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,48 +8,7 @@ starter_kits: [genai]
8
8
<!-- --8<-- [start:example]-->
9
9
Automatically apply labels to PRs that are assisted by GitHub Copilot. You can apply labels based on a known list of Copilot users, PR tags, or by prompting the PR author to indicate if they used Copilot.
10
10
11
-
=== "Label by AI Rules"
12
-
Automatically apply labels to PRs based on Copilot AI rules, providing a data-driven approach to track developer adoption of AI tools without requiring manual input from developers.
13
-
14
-
This solution automatically tracks AI tool usage without requiring developers to fill out surveys or take manual actions. Each AI-assisted edit is logged with unique identifiers in structured JSON format, setting the foundation for analytics across different AI tools while maintaining a consistent data model.
15
-
16
-
!!! info "Configuration Description"
17
-
Conditions:
18
-
19
-
* A PR is created
20
-
* Copilot AI was used in this PR
21
-
* Copilot rule file was added to the repo
22
-
* Changes to `.cm/ai.log` file are detected (this file contains entries for each AI-assisted action)
23
-
24
-
Automation Actions:
25
-
26
-
* PR is labeled with `ai-assisted`
27
-
* Structured data about AI usage is logged for future analytics
[:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/copilot/label_copilot_by_rule.cm){ .md-button }
46
-
</span>
47
-
</div>
48
-
49
-
!!! tip
50
-
Add `.cm/ai.log linguist-generated=true` to your `.gitattributes` file to ensure that Copilot-generated files are not included in your repository.
51
-
52
-
=== "Label by Survey"
11
+
=== "Label by Prompt"
53
12
Prompt PR authors to indicate if they used Copilot for the PR and automatically label the PR if they did. This requires two separate automation files to handle posting the prompt and labeling accordingly.
54
13
55
14

Automatically apply labels to Pull Requests that are assisted by Cursor AI. This automation helps track the impact and usage of Cursor's AI capabilities across your development workflow.
10
10
11
-
=== "Label by AI Rules"
12
-
Automatically apply labels to PRs based on Cursor AI rules, providing a data-driven approach to track developer adoption of AI tools without requiring manual input from developers.
13
-
14
-
This solution automatically tracks AI tool usage without requiring developers to fill out surveys or take manual actions. Each AI-assisted edit is logged with unique identifiers in structured JSON format, setting the foundation for analytics across different AI tools while maintaining a consistent data model.
15
-
16
-
!!! info "Configuration Description"
17
-
Conditions:
18
-
19
-
* A PR is created
20
-
* Cursor AI was used in this PR
21
-
* Cursor rule file was added to the repo
22
-
* Changes to `.cm/ai.log` file are detected (this file contains entries for each AI-assisted action)
23
-
24
-
Automation Actions:
25
-
26
-
* PR is labeled with `ai-assisted`
27
-
* Structured data about AI usage is logged for future analytics
28
-
29
-
!!! example "`.cursor/rules/cursor-ai-logging.mdc`"
[:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/cursor/label_cursor_by_rule.cm){ .md-button }
46
-
</span>
47
-
</div>
48
-
49
-
!!! tip
50
-
Add `.cm/ai.log linguist-generated=true` to your `.gitattributes` file to ensure that AI-generated files are marked as generated content.
51
-
52
-
53
-
=== "Label by Survey"
11
+
=== "Label by Prompt"
54
12
Prompt PR authors to indicate if they used Cursor for the PR and automatically label the PR if they did. This requires two separate automation files to handle posting the prompt and labeling accordingly.
55
13
56
14

0 commit comments