Add content policy enforcement for commits, PRs, and issues#405
Merged
nikblanchet merged 2 commits intomainfrom Nov 28, 2025
Merged
Add content policy enforcement for commits, PRs, and issues#405nikblanchet merged 2 commits intomainfrom
nikblanchet merged 2 commits intomainfrom
Conversation
- Add commit-msg hook (Husky) to reject forbidden emojis in commit messages - Add GitHub Action to validate PR descriptions, issues, and comments - Forbidden emojis: robot, checkmark, X, rocket, prohibited, sparkles, heart - Reject redundant Claude attributions (Co-Authored-By + Generated with) Generated with [Claude Code](https://claude.com/claude-code) Steered and verified by @nikblanchet
Critical fixes: - Propagate exit code from local hook (was silently ignored) - Use full email in Co-Authored-By check to avoid false positives - Extract commit message only (before diff markers) to prevent false positives Important fixes: - Use printf instead of echo for robustness - Add terminal check for color codes (works in CI logs) - Add case-insensitive matching for Claude signatures - Add 'reopened' trigger to GitHub Action Minor improvements: - Add set -e for better error handling - Add permissions block to GitHub Action - Show which emoji was detected in error message - Add bypass instructions to error messages Generated with [Claude Code](https://claude.com/claude-code) Steered and verified by @nikblanchet
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
Files Changed
.husky/commit-msg- Local commit message validation.github/workflows/content-policy.yml- GitHub Action for PR/issue/comment validationPost-Merge Setup
To make the check block merging:
mainbranchNote: The workflow must run at least once before it appears in the status check list.
Generated with Claude Code
Steered and verified by @nikblanchet