Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Add AI-generated content detection workflow#1931

Open
pratik-mahalle wants to merge 1 commit intomicrocks:masterfrom
pratik-mahalle:feature/ai-content-detection-workflow
Open

feat: Add AI-generated content detection workflow#1931
pratik-mahalle wants to merge 1 commit intomicrocks:masterfrom
pratik-mahalle:feature/ai-content-detection-workflow

Conversation

@pratik-mahalle
Copy link

Description

This CI workflow helps identify pull requests that may contain AI-generated content, allowing reviewers to focus their attention accordingly.

Features:

  • Automatically triggers on PRs from forked repositories
  • Can be manually triggered for any PR number
  • Uses GitHub Copilot CLI for content analysis
  • Posts analysis results as PR comments
  • Adds configurable labels to flagged PRs
  • Supports dry-run mode for testing
  • Configurable confidence threshold (default: 80%)
  • Skips specified users (e.g., dependabot)

The workflow helps:

  • Streamline reviewer workflow
  • Ensure contributors understand submitted code
  • Maintain transparency in contributions

Reference: open-telemetry/opentelemetry.io#8631

Related issue(s)

#1889

This CI workflow helps identify pull requests that may contain AI-generated
content, allowing reviewers to focus their attention accordingly.

Features:
- Automatically triggers on PRs from forked repositories
- Can be manually triggered for any PR number
- Uses GitHub Copilot CLI for content analysis
- Posts analysis results as PR comments
- Adds configurable labels to flagged PRs
- Supports dry-run mode for testing
- Configurable confidence threshold (default: 80%)
- Skips specified users (e.g., dependabot)

The workflow helps:
- Streamline reviewer workflow
- Ensure contributors understand submitted code
- Maintain transparency in contributions

Reference: open-telemetry/opentelemetry.io#8631
Signed-off-by: Pratik Mahalle <[email protected]>
@pratik-mahalle pratik-mahalle force-pushed the feature/ai-content-detection-workflow branch from 4bd7d4c to 4a1b23f Compare January 23, 2026 12:50
@pratik-mahalle pratik-mahalle marked this pull request as ready for review January 23, 2026 12:54
* @param {string} output - Copilot analysis output
* @returns {number} Confidence score (0-100)
*/
function parseConfidenceScore(output) {
Copy link
Member

@SebastienDegodez SebastienDegodez Feb 19, 2026

Choose a reason for hiding this comment

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

Why not have an instruction ‘output json’ in the prompt to avoid the regex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants