Skip to content

fix(github): enforce existing git author identity#30507

Merged
nexxeln merged 2 commits into
anomalyco:devfrom
ulises-jeremias:fix/30409-github-action-git-identity-behavior
Jun 3, 2026
Merged

fix(github): enforce existing git author identity#30507
nexxeln merged 2 commits into
anomalyco:devfrom
ulises-jeremias:fix/30409-github-action-git-identity-behavior

Conversation

@ulises-jeremias

@ulises-jeremias ulises-jeremias commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #30409

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Addresses git identity behavior in the GitHub Action workflow without changing auth-header setup.

  • Keeps existing token/header configuration logic in configureGit
  • Stops overriding git author identity globally
  • Adds an explicit pre-commit guard used in all commit paths:
    • pushToNewBranch
    • pushToLocalBranch
    • pushToForkBranch
  • If identity is missing, fails with a clear error instead of guessing or inventing author identity
  • Adds explicit prompt-context guidance for issue and PR flows to reuse configured git author identity and avoid modifying git config unless explicitly requested

How did you verify your code works?

  • Verified the change scope is isolated to github/index.ts
  • Ran bun typecheck in packages/opencode

Screenshots / recordings

N/A (non-UI change)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@nexxeln nexxeln merged commit a3b97d9 into anomalyco:dev Jun 3, 2026
2 checks passed
ShamirSecret pushed a commit to ShamirSecret/auto-code-machine that referenced this pull request Jun 3, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCode GitHub Actions system prompt should tell the agent that git author identity is already configured

2 participants