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

chore: soft-block commits to main branch with husky pre-commit check #11094

Merged
merged 5 commits into from
Aug 5, 2021

Conversation

HonkingGoose
Copy link
Collaborator

Changes:

  • Add husky pre-commit check to soft-block commits to main branch

Context:

Marking this as a draft PR until we're happy with the code.

Fixes #11091.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@HonkingGoose HonkingGoose requested review from rarkins and viceice August 4, 2021 13:18
viceice
viceice previously approved these changes Aug 5, 2021
@viceice
Copy link
Member

viceice commented Aug 5, 2021

Works for me, if i change the the branch name to pr/HonkingGoose/11094 😉

@rarkins
Copy link
Collaborator

rarkins commented Aug 5, 2021

Let's try it. Have you tried merging into the branch using GitHub's web UI? e.g. create a new pull request against your existing branch here and then merge into it. Will such a merge squash get rejected?

.husky/pre-commit Outdated Show resolved Hide resolved
@viceice viceice marked this pull request as ready for review August 5, 2021 12:39
@viceice
Copy link
Member

viceice commented Aug 5, 2021

@rarkins This hook will only run after yarn deps are installed. So it mostly will only be visible by developers.

@viceice viceice merged commit 1f46c71 into renovatebot:main Aug 5, 2021
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 25.68.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@HonkingGoose HonkingGoose deleted the chore/husky-git-hooks branch August 5, 2021 17:10
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use automation to soft-block commits to main branch
4 participants