Skip to content

Conversation

@vim-zz
Copy link
Collaborator

@vim-zz vim-zz commented Jul 17, 2025

Screenshot 2025-07-17 at 18 23 09

✨ PR Description

Purpose: Add tagging system for PRs with Claude as co-author to track and label AI-assisted code contributions.
Main changes:

  • Added new "Label Co-author" tab with configuration for detecting Claude co-authorship
  • Created detection logic for Claude authorship in PR metadata and commit messages
  • Implemented automation file for automatically applying "🤖 Claude Code" label to qualifying PRs

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

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

@gitstream-cm
Copy link
Contributor

gitstream-cm bot commented Jul 17, 2025

Please mark which AI tools you used for this PR by checking the appropriate boxes:

  • GitHub Copilot
  • Cursor
  • ChatGPT
  • Tabnine
  • JetBrains AI Assistant
  • VSCode IntelliCode
  • Claude
  • Gemini
  • Other AI tool
  • No AI tools were used

Tip: If you want to avoid this comment in the future, you can add a label of the format 🤖 ai-* when creating your PR.

Copy link
Contributor

@gitstream-cm gitstream-cm bot left a comment

Choose a reason for hiding this comment

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

✨ PR Review

The PR adds a new automation to label PRs authored by Claude or with Claude as a co-author. The implementation looks mostly sound but has regex pattern issues that could affect matching accuracy.

2 issues detected:

🐞 Bug - Applying case-insensitive regex patterns to already lowercased strings is redundant and potentially error-prone.

Details: The regex pattern uses case-insensitive character classes [Cc]laude after already converting the string to lowercase. This redundancy could cause unexpected matching behavior or inefficiency.
File: docs/downloads/automation-library/integrations/claude_code/label_claude_code_by_co_author.cm (14-14)

🐞 Bug - The current pattern may not match all legitimate co-author line formats used in practice.

Details: The regex pattern for detecting co-author lines may be too restrictive and could miss legitimate variations of the "Co-authored-by" format, such as different casing or spacing patterns commonly used in Git commits.
File: docs/downloads/automation-library/integrations/claude_code/label_claude_code_by_co_author.cm (15-15)

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

@gitstream-cm gitstream-cm bot requested a review from BenLloydPearson July 17, 2025 15:25
@gitstream-cm gitstream-cm bot requested a review from a team July 17, 2025 15:26
vim-zz and others added 2 commits July 17, 2025 18:26
…el_claude_code_by_co_author.cm

Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
Copy link
Contributor

@gitstream-cm gitstream-cm bot left a comment

Choose a reason for hiding this comment

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

✨ PR Review

The PR adds automation to detect Claude-authored or co-authored PRs and apply labels. The implementation has improved from previous versions, but still contains a pattern matching issue that could result in false positives.

1 issues detected:

🐞 Bug - Substring matching without word boundaries will match unintended usernames containing "claude".

Details: The author matching pattern will match any username containing "claude" as a substring, potentially causing false positives for users like "claudesmith", "mcclaude", or "claudenova".
File: docs/downloads/automation-library/integrations/claude_code/label_claude_code_by_co_author.cm (14-14)

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

Copy link
Collaborator

@MishaKav MishaKav left a comment

Choose a reason for hiding this comment

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

lg

@gitstream-cm gitstream-cm bot requested a review from a team July 17, 2025 15:45
Copy link
Contributor

@gitstream-cm gitstream-cm bot left a comment

Choose a reason for hiding this comment

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

✨ PR Review

LGTM

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

@vim-zz vim-zz merged commit 743f628 into main Jul 17, 2025
14 checks passed
@vim-zz vim-zz deleted the coauthor-tagging branch July 17, 2025 15:57
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.

2 participants