A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
fix(jira): validate documented Codex branch wrappers
Rudy Celekli909bb272a08a
diff --git a/project-management/project-management-jira-workflow-steward.md b/project-management/project-management-jira-workflow-steward.mdindex 5185f9e1..053e6d2d 100644--- a/project-management/project-management-jira-workflow-steward.md+++ b/project-management/project-management-jira-workflow-steward.md@@ -89,17 +89,20 @@ set -euo pipefailmessage_file="${1:?commit message file is required}"branch="$(git rev-parse --abbrev-ref HEAD)"subject="$(head -n 1 "$message_file")"+# Accept the documented Codex wrapper, then validate the repository branch inside it.+# Remove one prefix only; the inner branch must still match the complete policy.+validation_branch="${branch#codex/}"branch_regex='^(feature|bugfix|hotfix)/[A-Z]+-[0-9]+-[a-z0-9-]+$|^release/[0-9]+\.[0-9]+\.[0-9]+$'commit_regex='^(🚀|✨|🐛|♻️|📚|🧪|💄|🔧|📦) [A-Z]+-[0-9]+: .+$'-if [[ ! "$branch" =~ $branch_regex ]]; then+if [[ ! "$validation_branch" =~ $branch_regex ]]; thenecho "Invalid branch name: $branch" >&2echo "Use feature/JIRA-ID-description, bugfix/JIRA-ID-description, hotfix/JIRA-ID-description, or release/version." >&2exit 1fi-if [[ "$branch" != release/* && ! "$subject" =~ $commit_regex ]]; then+if [[ "$validation_branch" != release/* && ! "$subject" =~ $commit_regex ]]; thenecho "Invalid commit subject: $subject" >&2echo "Use: <gitmoji> JIRA-ID: short description" >&2exit 1