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

Added pre-commit and pre-push hook #10

Open
wants to merge 28 commits into
base: develop
Choose a base branch
from

Conversation

niharikagali
Copy link

Fixes: #9

Copy link
Member

@shashaBot shashaBot left a comment

Choose a reason for hiding this comment

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

Remove .DS_Store file from commit and make the required changes.

@@ -9,7 +9,9 @@
"lint": "tslint -c tslint.json -p tsconfig.json",
"start": "npm run build && electron ./dist/main.js",
"lint:fix": "eslint ./src/**/*.js ./tests/**/*.js --fix",
"test": "mocha tests/spec.js --timeout 30000"
"test": "mocha tests/spec.js --timeout 30000",
"precommit": "npm run lint && npm test",
Copy link
Member

Choose a reason for hiding this comment

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

Please upgrade the hooks configuration according to the documentation here

Copy link
Author

Choose a reason for hiding this comment

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

Done!

@@ -9,7 +9,9 @@
"lint": "tslint -c tslint.json -p tsconfig.json",
"start": "npm run build && electron ./dist/main.js",
"lint:fix": "eslint ./src/**/*.js ./tests/**/*.js --fix",
"test": "mocha tests/spec.js --timeout 30000"
"test": "mocha tests/spec.js --timeout 30000",
"precommit": "npm run lint && npm test",
Copy link
Member

Choose a reason for hiding this comment

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

Also, you had to add tsc command for checking compilation errors

Copy link
Author

Choose a reason for hiding this comment

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

Okay, was initially confused. Added it :)

Copy link
Member

Choose a reason for hiding this comment

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

You latest commit does not have changes to this file. Please add your changes and update again.

Copy link
Member

@shashaBot shashaBot left a comment

Choose a reason for hiding this comment

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

The changes requested have not been included. Please add those and update your PR. Thanks!

Muskan0510 and others added 2 commits April 3, 2020 03:38
* removed linting errors

* removed linting errors

* removed linting errors

* removed linting errors

* remove one un-neccessary commit

* cleared the renderer file

Co-authored-by: Piyush Agrawal <[email protected]>
@poush poush changed the base branch from newBase to develop June 20, 2020 18:58
@poush
Copy link
Member

poush commented Jun 20, 2020

Please rebase, I have changed the base branch.

@poush poush force-pushed the develop branch 2 times, most recently from f47baa3 to 9a54c84 Compare June 20, 2020 19:07
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.

Create a pre-commit hook
6 participants