Skip to content

fix(core,github-action): set git user before release flows#155

Merged
dangreen merged 1 commit into
mainfrom
fix/github-action-set-user
Jun 29, 2026
Merged

fix(core,github-action): set git user before release flows#155
dangreen merged 1 commit into
mainfrom
fix/github-action-set-user

Conversation

@dangreen

Copy link
Copy Markdown
Member

No description provided.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 28392337989

Coverage increased (+1.0%) to 64.006%

Details

  • Coverage increased (+1.0%) from the base build.
  • Patch coverage: 2 uncovered changes across 1 file (14 of 16 lines covered, 87.5%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
packages/core/src/releaser.ts 16 14 87.5%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 840
Covered Lines: 598
Line Coverage: 71.19%
Relevant Branches: 463
Covered Branches: 236
Branch Coverage: 50.97%
Branches in Coverage %: Yes
Coverage Strength: 9.9 hits per line

💛 - Coveralls

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces an explicit setUser step to configure git user identity as part of the release pipeline, and wires it into the GitHub Action’s default flows so commits/tags are attributed correctly.

Changes:

  • Added Releaser.setUser() step in @simple-release/core and corresponding ReleaserSetUserOptions type + step options wiring.
  • Removed git user configuration from checkout() and added a core unit test covering setUser.
  • Updated the GitHub Action releaser to default to github-actions[bot] and documented the updated default flows.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/github-action/src/releaser.ts Adds setUser() override/defaults and calls it in the action’s PR/release flows.
packages/github-action/README.md Documents default action flows, now including setUser().
packages/core/src/releaser.types.ts Introduces ReleaserSetUserOptions and adds stepsOptions.setUser.
packages/core/src/releaser.ts Adds setUser() step and removes user config from checkout().
packages/core/src/releaser.spec.ts Adds a unit test verifying setUser() writes git config values.
packages/core/README.md Adds setUser to the list of available steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 131 to 135
await this
.setUser()
.checkout()
.fetchOptions()
.bump()
Comment on lines +41 to +45
return super.setUser({
username: 'github-actions[bot]',
email: 'github-actions[bot]@users.noreply.github.com',
...options
})
Comment on lines 149 to 153
action
.setUser()
.checkout()
.fetchOptions()
.bump()
@dangreen dangreen merged commit 1690c9c into main Jun 29, 2026
7 checks passed
@dangreen dangreen deleted the fix/github-action-set-user branch June 29, 2026 18:26
@github-actions github-actions Bot mentioned this pull request Jun 29, 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.

3 participants