Skip to content

Conversation

@PavelLinearB
Copy link
Contributor

@PavelLinearB PavelLinearB commented Apr 16, 2025

image

✨ PR Description

Purpose and impact:
This PR introduces an automated system to label Pull Requests based on AI assistance used by developers.

Main changes:

  • Adds new automation files for prompting developers about AI tool usage and applying labels accordingly
  • Implements functionality to skip prompts for known AI tool users
  • Updates integration documentation to include the new AI assistance labeling feature

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using. We’d love your feedback! 🚀

@PavelLinearB PavelLinearB requested a review from Copilot April 16, 2025 17:07
Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates documentation and automation scripts to replace references to GitHub Copilot with AI Assistance and to add new integrations for labeling and prompting AI-assisted PRs.

  • Renames headings and file references from “Copilot” to “AI-Assisted” in docs.
  • Introduces new automation scripts for prompting and labeling AI tool usage in PRs.
  • Updates documentation in the automation library reflecting the new AI assistance integrations.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/integrations/github-copilot.md Updated heading and example file reference to reflect AI Assistance
docs/integrations/README.md Added new AI Assistance integration card
docs/downloads/automation-library/integrations/copilot/label_copilot_by_contributors.cm Renamed label from “🤖 Copilot” to “🤖 ai-copilot” (file path still under “copilot”)
docs/downloads/automation-library/integrations/copilot/comment_copilot_prompt.cm Updated condition logic; regex still references old prompt text
docs/downloads/automation-library/integrations/ai-assistance/track_ai_models.cm New automation file for tracking AI tool selections
docs/downloads/automation-library/integrations/ai-assistance/comment_ai_prompt_with_known_users.cm New automation file for prompting known users regarding AI usage
docs/downloads/automation-library/integrations/ai-assistance/comment_ai_prompt.cm New automation file for prompting AI assistance in PRs
docs/automations/integrations/ai-assistance/flag-ai-pr/README.md New documentation covering AI assistance PR labeling and prompting
Comments suppressed due to low confidence (1)

docs/downloads/automation-library/integrations/copilot/label_copilot_by_contributors.cm:7

  • [nitpick] The file remains in a 'copilot' directory while the label has been updated to 'ai-copilot'. Consider renaming the file or directory to 'ai-assistance' for consistency with the new naming convention.
  label_copilot_by_contributors:

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

PavelLinearB and others added 3 commits April 16, 2025 20:22
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@PavelLinearB PavelLinearB requested a review from Copilot April 16, 2025 17:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an automated system to label PRs based on the AI tools used during development, enhancing transparency for AI assistance. Key changes include:

  • An integration card added in the docs to link the new AI assistance flag.
  • Updates to automation files for labeling and prompting users about AI tool usage.
  • New and updated configuration files for tracking various AI tools (e.g., Copilot, Cursor, ChatGPT).

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/integrations/README.md Added an integration card linking to the AI assistance automation.
docs/downloads/automation-library/integrations/copilot/label_copilot_by_contributors.cm Renamed the Copilot label to maintain clarity in labeling convention.
docs/downloads/automation-library/integrations/copilot/comment_copilot_prompt.cm Adjusted file header syntax for YAML mode consistency.
docs/downloads/automation-library/integrations/ai-assistance/track_ai_models.cm Introduced automations for labeling PRs based on AI tool checkboxes in comments.
docs/downloads/automation-library/integrations/ai-assistance/comment_ai_prompt_with_known_users.cm Added a prompt and label automation for known AI users with separate contributor lists.
docs/downloads/automation-library/integrations/ai-assistance/comment_ai_prompt.cm Added a generic prompt for specifying used AI tools.
docs/automations/integrations/ai-assistance/flag-ai-pr/README.md Documented the AI-assisted PR labeling automation and provided usage examples.
Comments suppressed due to low confidence (2)

docs/downloads/automation-library/integrations/ai-assistance/comment_ai_prompt_with_known_users.cm:59

  • [nitpick] The placeholder 'etc' is ambiguous; consider using a more descriptive example username or removing it to avoid confusion.
  - etc

docs/downloads/automation-library/integrations/ai-assistance/comment_ai_prompt_with_known_users.cm:64

  • [nitpick] The placeholder 'etcc' appears inconsistent with 'etc'; consider using a consistent placeholder such as 'usernameX' or removing it.
  - etcc

@PavelLinearB PavelLinearB merged commit 41fd917 into main Apr 16, 2025
14 checks passed
@PavelLinearB PavelLinearB deleted the measure-ai branch April 16, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant