Skip to content

Comments

feat: add include-commit-authors option to include author info in changelogs#2628

Open
mldangelo wants to merge 3 commits intogoogleapis:mainfrom
mldangelo:feat/include-commit-authors
Open

feat: add include-commit-authors option to include author info in changelogs#2628
mldangelo wants to merge 3 commits intogoogleapis:mainfrom
mldangelo:feat/include-commit-authors

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?

@mldangelo
Copy link
Contributor Author

mldangelo commented Jan 18, 2026

@chingor13 and @ferrarimarco would it be possible to review this? thanks!

@cdunda-perchwell
Copy link

Yes please! was just about to make this feature request! 🙏

@josmo
Copy link

josmo commented Feb 12, 2026

Definitely ditto on if we can get this in!

@mldangelo
Copy link
Contributor Author

mldangelo commented Feb 13, 2026

@chingor13 it's been 4 months since I PR'd this. Is there anything I can do to help get it reviewed? Thanks!

@cipick
Copy link

cipick commented Feb 19, 2026

Just wanted to show some support for this PR — it addresses something I'd really benefit from. The changes look solid and seem ready for review. Would love to see this move forward when you have bandwidth. Thanks for all the work you do on this project and kudos to @mldangelo for building this great addition! 🙏

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

6 participants