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: Fixed commit format verification prompt for Windows users #561

Merged
merged 6 commits into from
Oct 10, 2016

Conversation

berraknil
Copy link
Contributor

Fixes #551

Added the git-hooks-win package to package.json under developer dependencies. This package has zero dependencies and supports the current model of format verification prompt that is available to Mac OS users for Windows users as well.

This was the error message I got before adding the package

before

And after installing the package, prompt works correctly

after

Tested on Windows 10.

@coveralls
Copy link

coveralls commented Oct 8, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 7af29a6 on berraknil:master into aeff9ba on mozilla:master.

Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

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

I haven't had a chance to try this on Mac yet but here is some quick feedback

@@ -87,6 +87,7 @@
"firefox-client": "0.3.0",
"flow-bin": "0.33.0",
"git-hooks": "1.1.1",
"git-hooks-win": "1.1.11",
Copy link
Contributor

@kumar303 kumar303 Oct 8, 2016

Choose a reason for hiding this comment

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

Good find! This looks really promising and it sounds like it will also work on Mac. However, since the installation of this module installs a hook script, I think we also need to remove the old git-hooks dependency, right? Otherwise both of them will be modifying the hook script.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I didn't want to mess with the original package since I don't have a mac to try if this one works properly on Mac too. If it does we should remove the other one and keep the windows compatible ,otherwise I'll try one of the few other solutions I looked into (like grunt-git-hooks) which are a bit more complicated.

@coveralls
Copy link

coveralls commented Oct 9, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 6ab0d7c on berraknil:master into aeff9ba on mozilla:master.

@coveralls
Copy link

coveralls commented Oct 9, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 9642332 on berraknil:master into aeff9ba on mozilla:master.

Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

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

This is working great on Mac so I think this solution will be cross platform. Excellent!

Can you also remove this caveat about Windows in the contributor guide? https://github.com/mozilla/web-ext/blob/master/CONTRIBUTING.md#checking-commit-message-formatting

@@ -87,6 +87,7 @@
"firefox-client": "0.3.0",
"flow-bin": "0.33.0",
"git-hooks": "1.1.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this. I just tried it on Mac and it works just fine with only the git-hooks-win package.

@coveralls
Copy link

coveralls commented Oct 10, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 2e8161c on berraknil:master into aeff9ba on mozilla:master.

@coveralls
Copy link

coveralls commented Oct 10, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 0c5cf78 on berraknil:master into aeff9ba on mozilla:master.

@kumar303 kumar303 self-assigned this Oct 10, 2016
Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

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

Thanks for all the follow-ups!

@kumar303 kumar303 merged commit c0dc674 into mozilla:master Oct 10, 2016
@atsay
Copy link

atsay commented Oct 10, 2016

Hi Berrak, thanks for the fix, and welcome! I've added this fix to our recognition page.

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.

5 participants