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

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

Merged
merged 4 commits into from
Oct 20, 2022

Conversation

bdragon
Copy link
Member

@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
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
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.

None yet

4 participants