feat: add AI code attribution workflow using git-ai - #138
Open
YairLeshemOctopus wants to merge 28 commits into
Open
feat: add AI code attribution workflow using git-ai#138YairLeshemOctopus wants to merge 28 commits into
YairLeshemOctopus wants to merge 28 commits into
Conversation
Adds a GitHub Actions workflow that checks AI-written code percentage in PRs using git-ai and posts a visual comment with the results. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
🤖 AI Code Attribution🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧
Tool & model breakdown
Powered by git-ai | Commit range: |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
git-ai stats returns different JSON structures for single commits vs ranges. Range queries nest data under .range_stats. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Total was incorrectly using total_ai_additions (net metric) instead of ai_additions (actual line count) - Replace empty text output with tool/model breakdown table from JSON Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace actions/checkout with manual git clone and run all steps inside quay.io/codefresh/curl container. No external action dependencies. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Previously mixed_pct was computed as remainder (100 - human - ai), which attributed rounding errors to mixed even when mixed was 0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…t-ai Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The container user differs from the checkout user, causing git to reject operations with 'dubious ownership'. This silently broke the notes fetch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New workflow triggers on push to test-git-ai branch, runs cumulative git-ai stats, and updates README between marker comments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The empty tree SHA doesn't work with git-ai. Use git rev-list to find the actual first commit dynamically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…repo Replace inline workflow logic with thin callers that reference codefresh-io/shared-github-workflows reusable workflows. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code