Skip to content

Conversation

maxdanilov
Copy link
Member

@maxdanilov maxdanilov commented Jul 9, 2025

  • 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

--

Related: https://github.com/camunda/team-infrastructure/issues/880

@maxdanilov maxdanilov self-assigned this Jul 9, 2025
- 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
@maxdanilov maxdanilov force-pushed the check-ai-commits branch 2 times, most recently from 94f978e to fbb7f6a Compare July 9, 2025 16:29
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