Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: incorrect author attribution when base branch is force pushed #133

Closed
danielleadams opened this issue Oct 13, 2022 · 5 comments
Closed

Comments

@danielleadams
Copy link

danielleadams commented Oct 13, 2022

When a changelog is generated, there is an instance when the incorrect author is listed.

Steps for reproduction:

  • commit author opens a pull request against a base branch
  • a second person force pushes to base branch
  • commit author rebases on base branch
  • second person is added as a co-author on the commit
  • when the changelog is generated, the second person that has been added as co-author is listed as the author

Expected result:

When the changelog is generated, the commit author should be listed as the author.

@targos
Copy link
Member

targos commented Oct 13, 2022

Do you have an example PR for which it happened?

@RafaelGSS
Copy link
Member

RafaelGSS commented Oct 13, 2022

I think the issue might be on the git node land that included the wrong metadata. Just a guess.

@targos this one nodejs/node#44256

@richardlau
Copy link
Member

I don't believe changelog-maker even looks at co-authors. commit-stream (which we're using) does parse them (since nodejs/commit-stream#4) but puts them in an authors field (plural) while changelog-maker only reads the author (singular) field:

s += data.author ? `(${cleanMarkdown(data.author)}) ` : ''

data.author = (commit.author && commit.author.name) || ''

@targos
Copy link
Member

targos commented Oct 13, 2022

I don't think this is related to our tooling. The PR author probably did a mistake when they rebased.

@danielleadams
Copy link
Author

Okay, I can close then.

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

No branches or pull requests

4 participants