Skip to content

Conversation

@mldangelo
Copy link
Contributor

@mldangelo mldangelo commented Nov 28, 2025

Adds a new configuration option include-commit-authors that appends commit author information to changelog entries.

Example output:

feat(vehicle)!: the_commit_message (#123) (@username)

Changes

  • Added CommitAuthor interface to capture author metadata (name, email, username)
  • Updated GraphQL query to fetch commit author information
  • Added includeCommitAuthors to ReleaserConfig and BuildNotesOptions
  • Updated DefaultChangelogNotes to render author info when enabled
  • Added documentation for CLI and manifest config

Behavior

When enabled:

  • Displays (@username) if GitHub username is available
  • Falls back to author name otherwise

Configuration

CLI:

release-please release-pr --include-commit-authors

In release-please-config.json:

{
  "include-commit-authors": true
}

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #1716
Fixes googleapis/release-please-action#1063 🦕


Thanks for maintaining this project! Happy to make any changes needed.

…ngelogs

This adds a new configuration option `include-commit-authors` that when
enabled, appends commit author information to changelog entries.

When the option is enabled:
- If the commit has a GitHub username, it displays as `(@username)`
- Otherwise, it falls back to the commit author's name

Changes:
- Add `CommitAuthor` interface to capture author metadata
- Update GraphQL query to fetch author info (name, email, username)
- Add `includeCommitAuthors` to ReleaserConfig and BuildNotesOptions
- Update DefaultChangelogNotes to render author info when enabled
- Add documentation for CLI and manifest config
- Add tests for the new functionality

Fixes googleapis/release-please-action#1063
Fixes googleapis#1716
@mldangelo mldangelo force-pushed the feat/include-commit-authors branch from 9b61084 to 2d3d4a6 Compare November 28, 2025 09:33
@faizanminhas
Copy link

Would love to see this go in! Could someone give this a review please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is there a way to configure release-please to add a commit author in changelog lines? Add commit fields to access authors and PR number

3 participants