-
Notifications
You must be signed in to change notification settings - Fork 1k
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: update-type
is sometimes null
#4893
Comments
Today dependabot created a new PR and
While the last one is not,
I didn't make any changes in the mean time, the only difference is that the last one is triggered by my commit, and the new one looks like it's triggered from the daily schedule. Is this the intended behavior? |
update-type
is always null
update-type
is sometimes null
I'm experiencing the same. Could it be that the commit message is being truncated?
|
@emosbaugh - I don't think the comment is being truncated because it has the ending I think that the code in I would think that https://github.com/dependabot/dependabot-core/blob/9c4ab72abef38a9d1601b5fdb85943f3c4fba8bd/common/lib/dependabot/pull_request_creator/message_builder.rb#L53:L59 would be the spot that would add that, but I don't see it actually adding the |
For me this bug seems to be consistently reproducible when the commit was created from a |
@agarcher I'm not able to replicate that in the npm_and_yarn ecosystem. Here's my commit prior to rebasing: Here it is after doing @dependabot rebase: They both contain the "update-type:" line that Is there a particular ecosystem for which this is an issue? |
I'm seeing it for |
I'm not able to replicate that issue reliably, but I do see instances where update-type is missing for some reason. So, I just added pr dependabot/fetch-metadata#173 which allows fetch-metdata to calculate the update-type on-the-fly if it's missing for some reason. |
I've transferred this issue in from https://github.com/dependabot/fetch-metadata/ as there is a workaround for the action but the bug is effectively that core doesn't populate this on commits sometimes so it isn't fully resolved by that PR Workaround: dependabot/fetch-metadata#173 |
@brrygrdn Maybe related to the recent fix at dependabot/fetch-metadata#173, I kept my test repo open as a monitor for the progress of this issue. In fact it had been auto-upgrading normally until today, please see vicary/test-dependabot#50.
|
@vicary Your job is still using You are correct that this bug (#4893) still exists in Please update your action to use |
@mwaddell Yes, it's now working even with @dependabot commands. |
Is this only happening on PR rebases and not the initial commit of a PR? If so, I wonder if the root cause is the same as described in #4652 (comment)? |
I started having this issue when I started using the grouped updates feature on some of my private repositories and on a public repository today.
|
I am seeing the same issue, if Dependabot creates PR for multiple dependencies, it will return as null. |
@yhy-1 fetch-metadata pulls the VS |
I want to auto-merge for minor and patch updates, but the
update-type
is alwaysnull
.You may see this job for the metadata output.
Am I doing it wrong?
The text was updated successfully, but these errors were encountered: