Skip to content

Fall back to PR title if original PR head commit is missing#5913

Merged
brrygrdn merged 4 commits intomainfrom
bdragon/old-commit-msg
Oct 20, 2022
Merged

Fall back to PR title if original PR head commit is missing#5913
brrygrdn merged 4 commits intomainfrom
bdragon/old-commit-msg

Conversation

@bdragon
Copy link
Copy Markdown
Contributor

@bdragon bdragon commented Oct 18, 2022

When a pull request is updated, the PR updater assumes that it can re-use the commit message from an old pull request commit. If the appropriate commit has been lost, however, we've seen strange behavior wherein the message from an unrelated commit is used instead.

In this scenario (i.e., when the old commit is missing), ideally Dependabot should regenerate the commit message. Unfortunately we currently don't have the metadata necessary to do so at the point where the updater is invoked in our internal service. As an interim solution, this change uses the PR title as a fallback commit message to prevent the confusing behavior described above.

@bdragon bdragon requested a review from a team as a code owner October 18, 2022 01:15
@bdragon bdragon force-pushed the bdragon/old-commit-msg branch from 919af7c to 26569b4 Compare October 18, 2022 03:06
Co-authored-by: Mattt <mattt@github.com>
@brrygrdn brrygrdn merged commit 2f42779 into main Oct 20, 2022
@brrygrdn brrygrdn deleted the bdragon/old-commit-msg branch October 20, 2022 10:17
@brrygrdn
Copy link
Copy Markdown
Contributor

@bdragon Apologies, I may have early merged this PR due to misreading the deployment status.

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.

4 participants