Skip to content

Commit e675ce2

Browse files
committed
Revert AI logging
This reverts commit 1c3c601.
1 parent 4415eeb commit e675ce2

File tree

6 files changed

+2
-252
lines changed

6 files changed

+2
-252
lines changed

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

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,7 @@ starter_kits: [genai]
88
<!-- --8<-- [start:example]-->
99
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.
1010

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
28-
29-
!!! example "`.github/copilot-instructions.md`"
30-
```yaml+jinja
31-
--8<-- "docs/downloads/automation-library/integrations/copilot/copilot-instructions.md"
32-
```
33-
<div class="result" markdown>
34-
<span>
35-
[:octicons-download-24: Download Cursor rules file.](/downloads/automation-library/integrations/copilot/copilot-instructions.md){ .md-button }
36-
</span>
37-
</div>
38-
39-
!!! example "PR is labled with AI usage"
40-
```yaml+jinja
41-
--8<-- "docs/downloads/automation-library/integrations/copilot/label_copilot_by_rule.cm"
42-
```
43-
<div class="result" markdown>
44-
<span>
45-
[: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"
5312
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.
5413

5514
![Label Copilot by Prompt](/automations/integrations/copilot/flag-copilot-pr/label-copilot-by-prompt.png)

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

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,7 @@ category: [quality, genai, cursor, quickstart]
88
<!-- --8<-- [start:example]-->
99
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.
1010

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`"
30-
```yaml+jinja
31-
--8<-- "docs/downloads/automation-library/integrations/cursor/cursor-ai-logging.mdc"
32-
```
33-
<div class="result" markdown>
34-
<span>
35-
[:octicons-download-24: Download Cursor rules file.](/downloads/automation-library/integrations/cursor/cursor-ai-logging.mdc){ .md-button }
36-
</span>
37-
</div>
38-
39-
!!! example "PR is labled with AI usage"
40-
```yaml+jinja
41-
--8<-- "docs/downloads/automation-library/integrations/cursor/label_cursor_by_rule.cm"
42-
```
43-
<div class="result" markdown>
44-
<span>
45-
[: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"
5412
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.
5513

5614
![Label Cursor by Prompt](/automations/integrations/cursor/flag-cursor-pr/label-cursor-by-prompt.png)

docs/downloads/automation-library/integrations/copilot/copilot-instructions.md

Lines changed: 0 additions & 69 deletions
This file was deleted.

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

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/downloads/automation-library/integrations/cursor/cursor-ai-logging.mdc

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/downloads/automation-library/integrations/cursor/label_cursor_by_rule.cm

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)