feat: add assert-no-ai-commits action to enforce AI Policy#441
Draft
maxdanilov wants to merge 8 commits intomainfrom
Draft
feat: add assert-no-ai-commits action to enforce AI Policy#441maxdanilov wants to merge 8 commits intomainfrom
maxdanilov wants to merge 8 commits intomainfrom
Conversation
- Add new reusable action to detect and block AI-authored commits - Prevents PRs containing AI-authored commits from being merged - Enforces Camunda AI Policy requiring human attribution - Detects various AI patterns including GitHub Copilot, ChatGPT, Claude, etc. - Includes comprehensive test suite and example workflows - Updated main README with action index for better discoverability This action helps ensure compliance with Camunda's AI Policy by: 1. Blocking direct AI authorship in commits 2. Encouraging proper human attribution 3. Maintaining transparency in AI usage
- Merged test.sh and comprehensive-test.sh into single test.sh - Removed examples directory as requested - Simplified project structure while maintaining comprehensive testing
- Removed complex functions and made detection more straightforward - Fixed false positive by using --no-patch to exclude diff content - Combined all AI pattern detection into single regex - Reduced code complexity while maintaining functionality - All tests still pass
- Fixed shell lint warning by properly handling continue in subshell - Fixed trailing whitespace issues - All pre-commit hooks now pass successfully - Functionality remains unchanged
- Removed hardcoded user-specific path to check.sh - Added dynamic path resolution using SCRIPT_DIR - Test script now works from any directory - More portable and user-independent
794e849 to
3da7968
Compare
94f978e to
fbb7f6a
Compare
fbb7f6a to
d46f219
Compare
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.
This action helps ensure compliance with Camunda's AI Policy by:
--
Related: https://github.com/camunda/team-infrastructure/issues/880