Skip to content

chore(devcontainer): default git identity to noreply#45

Merged
leodido merged 1 commit into
mainfrom
chore/devcontainer-noreply-identity
May 3, 2026
Merged

chore(devcontainer): default git identity to noreply#45
leodido merged 1 commit into
mainfrom
chore/devcontainer-noreply-identity

Conversation

@leodido
Copy link
Copy Markdown
Owner

@leodido leodido commented May 3, 2026

Stacked on #43. Top of the cli-track stack now (#38#39#40#41#42#43 → this). The base will retarget to main automatically when #43 merges.

Why

The Gitpod base image ships a global gitconfig at /usr/local/gitpod/shared/gitconfig that sets the maintainer's gmail address as the default git identity. Discovered the hard way during the recent main-history rewrite: a git rebase performed in this environment recorded the system-default committer address, and the resulting force-push was rejected with GH007.

Without intervention, every fresh devcontainer for this repo trips this trap on the first commit/push that doesn't manually override the identity.

What changes

postCreateCommand now also sets user.email and user.name to the GitHub-issued noreply identity (120051+leodido@users.noreply.github.com / leodido) right after wiring core.hooksPath. A fresh devcontainer is correct out of the box.

Out of scope

  • A pre-commit hook that rejects gmail authors. AGENTS.md already documents the noreply requirement and the recovery procedure; GH007 enforces it server-side. A local hook on top of that is belt-and-braces noise.
  • CI / server-side enforcement. GH007 already does this.

@leodido leodido self-assigned this May 3, 2026
@leodido leodido force-pushed the chore/devcontainer-noreply-identity branch from 8199090 to 7460e41 Compare May 3, 2026 20:49
@leodido leodido changed the title chore(devcontainer): default to noreply identity and reject gmail commits chore(devcontainer): default git identity to noreply May 3, 2026
@leodido leodido force-pushed the docs/agents-md-cli-conventions branch from 91cee4e to 1978f02 Compare May 3, 2026 22:44
@leodido leodido changed the base branch from docs/agents-md-cli-conventions to main May 3, 2026 22:46
The base image's global gitconfig defaults to the maintainer's gmail
address, so the first push from a fresh devcontainer trips GH007.
Set user.email/user.name to the GitHub noreply identity in
postCreateCommand so the happy path just works.

Co-authored-by: Ona <no-reply@ona.com>
@leodido leodido force-pushed the chore/devcontainer-noreply-identity branch from 7460e41 to 642f014 Compare May 3, 2026 22:47
@leodido leodido merged commit 2b27a7e into main May 3, 2026
6 checks passed
@leodido leodido deleted the chore/devcontainer-noreply-identity branch May 3, 2026 22:48
@leodido leodido added the chore label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant