From bbdb72a608464621845380233c0b37deed1f67cc Mon Sep 17 00:00:00 2001 From: Don Petry <36422719+don-petry@users.noreply.github.com> Date: Wed, 20 May 2026 07:35:14 -0500 Subject: [PATCH 1/2] fix(dev-lead): configure git user identity in fix-issue script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fix-issue prompt instructs Claude not to commit, so the script commits on Claude's behalf. But git requires user.name/user.email to be set — the runner's empty ident caused 'fatal: empty ident name' on every issue intent run. Adds setup_git_identity() which sets: git config user.name git config user.email +@users.noreply.github.com Called once before the feature branch is created. --- scripts/dev-lead-fix-issue.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/dev-lead-fix-issue.sh b/scripts/dev-lead-fix-issue.sh index f3e89572d..c925a373f 100755 --- a/scripts/dev-lead-fix-issue.sh +++ b/scripts/dev-lead-fix-issue.sh @@ -17,6 +17,18 @@ check_existing_pr() { [ "$existing" -gt 0 ] } +setup_git_identity() { + local bot="${BOT_USER:-donpetry-bot}" + local bot_id + bot_id=$(gh api "users/${bot}" --jq '.id' 2>/dev/null || echo "") + if [ -n "$bot_id" ]; then + git config user.email "${bot_id}+${bot}@users.noreply.github.com" + else + git config user.email "${bot}@users.noreply.github.com" + fi + git config user.name "$bot" +} + main() { if [ -z "$ISSUE_NUMBER" ]; then echo "::error::ISSUE_NUMBER is required" @@ -47,6 +59,10 @@ main() { exit 0 fi + # Configure git identity so the post-engine commit does not fail. + # BOT_USER is set as a job-level env var in dev-lead-reusable.yml. + setup_git_identity + # Create feature branch local branch branch="dev-lead/issue-${ISSUE_NUMBER}-$(date +%Y%m%d-%H%M)" From 5f1f64f500298ff5438e75b74eab398c551b98ea Mon Sep 17 00:00:00 2001 From: Don Petry <36422719+don-petry@users.noreply.github.com> Date: Wed, 20 May 2026 07:37:42 -0500 Subject: [PATCH 2/2] style(ci): remove trailing blank line to satisfy yamllint empty-lines rule --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3dcfe811..e6af8dca9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,4 +132,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} -