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

fix: prevent dependabot verison updates (+ husky fixes) #867

Merged
merged 12 commits into from
Feb 18, 2021

Conversation

brandonlenz
Copy link
Contributor

Summary

Dependabot recently performed an update to React for a major version change. We would like to prevent that in the future.

Additionally, uswds should be updated manually, so it has been added to the dependabot ignore list.

- React should not auto update on major version updates
- Bump storybook to current dep version
- Prevent USWDS auto updates
.github/dependabot.yml Outdated Show resolved Hide resolved
@brandonlenz brandonlenz changed the title Prevent dependabot verison updates: fix: prevent dependabot verison updates: Feb 8, 2021
Copy link
Contributor

@suzubara suzubara left a comment

Choose a reason for hiding this comment

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

@brandonlenz I'm not seeing the uswds dependency in the diff anymore, did it get removed by accident? I think once that's added back this is good to go!

@brandonlenz
Copy link
Contributor Author

brandonlenz commented Feb 17, 2021

@brandonlenz I'm not seeing the uswds dependency in the diff anymore, did it get removed by accident? I think once that's added back this is good to go!

Nice catch! Added it back in ac10252

suzubara
suzubara previously approved these changes Feb 17, 2021
@@ -0,0 +1 @@
_
Copy link
Contributor Author

@brandonlenz brandonlenz Feb 17, 2021

Choose a reason for hiding this comment

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

@suzubara heads up, in order to commit after the husky version update I had to yarn husky install which added this file in 1d091e8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I'm not so sure I did everything required here. In #877 the patch notes mentions updating from husky 4 to 5 being more involved:

Migrating

Important Husky v5 brings a lot of improvements but is also very different from v4. Git hooks won't work if you only upgrade husky dependency, existing config needs to be migrated too.

The best way to switch to v5 is to follow the new installation instructions and migrate existing hooks command using husky add.

I found https://github.com/typicode/husky-4-to-5 via typicode/husky#854 (comment)

Copy link
Contributor Author

@brandonlenz brandonlenz Feb 18, 2021

Choose a reason for hiding this comment

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

@suzubara @ahobson Okay, so the husky 5 docs don't cover the implementation of how husky 5 works (under the hood) very well. Basically they no longer use package.json, and instead rely on scripts in the .husky directory. Everything is updated in accordance with the Husky 5 docs now via 58b6d22

@brandonlenz
Copy link
Contributor Author

brandonlenz commented Feb 17, 2021

Re-running ci because the happo diff, while concerning, shouldn't be caused by this type of PR.
image

Hopefully it's just a happo fluke.

Edit: seems like it was

.github/dependabot.yml Outdated Show resolved Hide resolved
@brandonlenz brandonlenz changed the title fix: prevent dependabot verison updates: fix: prevent dependabot verison updates (+ husky fixes) Feb 18, 2021
ahobson
ahobson previously approved these changes Feb 18, 2021
Copy link
Contributor

@ahobson ahobson left a comment

Choose a reason for hiding this comment

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

I think this looks good to me. Thank you so much for chasing down all the comments and suggestions

@brandonlenz brandonlenz merged commit 4529d89 into main Feb 18, 2021
@brandonlenz brandonlenz deleted the bl-dependabot-ignore-versions branch February 18, 2021 17:24
@suzubara suzubara mentioned this pull request Feb 18, 2021
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.

3 participants