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

feat: check package changes via package.json diff #167

Merged
merged 2 commits into from Apr 6, 2022

Conversation

wilkmaia
Copy link
Contributor

@wilkmaia wilkmaia commented Apr 2, 2022

Instead of relying on the Dependabot-generated PR title, the action will
now check the package.json's diff and infer which packages were updated
and to which versions.

This was needed since Dependabot started bumping more than a single
package per PR and ommitting their versions from the title.

Closes #166

Checklist

Instead of relying on the Dependabot-generated PR title, the action will
now check the package.json's diff and infer which packages were updated
and to which versions.

This was needed since Dependabot started bumping more than a single
package per PR and ommitting their versions from the title.
@simoneb simoneb requested a review from Eomm April 5, 2022 09:38
src/action.js Outdated
}

if (pkgName === 'github-action-merge-dependabot' && isMajorRelease(pr)) {
const thisModuleChanges = moduleChanges['github-action-merge-dependabot']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's please extract this hardcoded string into a constant or, even better, grab it from some place where it already exists, e.g. pkg json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, @simoneb. Thanks for the review

@simoneb
Copy link
Collaborator

simoneb commented Apr 6, 2022

@wilkmaia please merge this PR and do a minor release please, using the release gh workflow

@simoneb simoneb merged commit 7799871 into fastify:main Apr 6, 2022
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.

I'm having an issue where the action still merges a major release even if the target is set to minor.
2 participants