Comments (4)
Here, I am adding the steps & code for writing Pre-commit hook, for preventing changes to the credential files.
- First make the vscode settings for accessing hidden .git files within vscode
- Go to settings & search for file.exclude then set { "**/.git" : false} & you are good to go
- Then go inside .git / hooks/pre-commit.sample & comment previous given stuff by selecting all(ctrl+a) and press (ctrl+/).
- Copy the given code below and paste it into the file.
FILE_MUST_NOT_CHANGE='conf/api_example_conf.py conf/remote_credentials.py conf/email_conf.py conf/ssh_conf.py conf/testrailenv_conf.py conf/tesults_conf.py' if git rev-parse --verify HEAD >/dev/null 2>&1 then against=HEAD else # Initial commit: diff against an empty tree object against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 fi exec 1>&2 if git diff --cached --name-only $against | grep --quiet --line-regexp --fixed-strings ####"$FILE_MUST_NOT_CHANGE" then echo Commit would modify one or more files that should not change. exit 1 else exit 0 fi
- Rename the file to pre-commit [remove .sample]
- Then make that file executable, go the directory where this file stored via Git Bash & run following -
chmod +x pre-commit
from qxf2-page-object-model.
I would like to work upon this issue, please assign it to me.
from qxf2-page-object-model.
@rohit679 You can create a fork and start working on any issue. Once done please create a PR
from qxf2-page-object-model.
Stale issue message
from qxf2-page-object-model.
Related Issues (20)
- PyTest to publish test case results to TestRails using Run ID & Case ID HOT 1
- User gets some import errors when running tests due to deleted files HOT 1
- toxify tests are failing on CircleCI due to lack of support for Python 3.6 HOT 1
- Invalid link provided for Firefox installation and 'bzip2' executable is missing HOT 1
- Use of assert detected while running accessibility tests HOT 1
- Circleci tests are failing due to ERROR at teardown HOT 1
- Smarter imports within the files in the framework HOT 1
- Fix stale BrowserStack badge and key HOT 2
- Read common config variables from .env file in our framework HOT 1
- Outdated Selenium Version Causing Errors with Latest Chrome Versions HOT 1
- Modify snapshot_util to check and create snapshot if not present already for Accessibility tests HOT 1
- Options to pass on remote testing not working HOT 1
- BrowserStack Desired capability HOT 1
- Option parser for os name and os_version with BrowserStack isnt working
- print message in function print_exception in driver factory HOT 1
- For Sauce labs we are not passing build and name details as part of desired capabilities HOT 1
- Incorrect error message in Exception for pytest_terminal_summary HOT 1
- turn_on_highlight feature can be a cli option so that we can call it when needed HOT 1
- remote_url_conf.py url port number and region could be variables HOT 1
- Imageio Warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qxf2-page-object-model.