Comments (4)
Here's my .git\hooks\pre-commit
, for reference. It won't work on your system probably:
#!/bin/sh
# An example hook script to verify what is about to be pushed. Called by "git
# push" after it has checked the remote status, but before anything has been
# pushed. If this script exits with a non-zero status nothing will be pushed.
#
# This hook is called with the following parameters:
#
# $1 -- Name of the remote to which the push is being done
# $2 -- URL to which the push is being done
#
# If pushing without using a named remote those arguments will be equal.
#
# Information about the commits which are being pushed is supplied as lines to
# the standard input in the form:
#
# <local ref> <local sha1> <remote ref> <remote sha1>
#
# This sample shows how to prevent push of commits where the log message starts
# with "WIP" (work in progress).
pushd /d/kolibri/
/c/users/mike/envs/kolibri/scripts/activate
/c/users/mike/envs/kolibri/scripts/tox.exe -e lint
LINT=$( echo $? )
if [ $LINT -ne 0 ]
then
echo "Linting failed with return code:"
exit $LINT
fi
/c/users/mike/envs/kolibri/scripts/tox.exe -e py2.7
PY27=$( echo $? )
if [ $PY27 -ne 0 ]
then
echo "Py2.7 tests failed with return code:"
exit $PY27
fi
exit 0
from kolibri.
Or are you suggesting a server-side hook?
from kolibri.
from kolibri.
I couldn't sleep, @benjaoming. Yoink!
from kolibri.
Related Issues (20)
- Error raised during insufficient storage handling HOT 8
- 'On my own' device - Merging a user is not working HOT 3
- Create pnpm webpack resolver plugin
- Update the search select dropdowns for grade levels and accessibility options so they are in a consistent, correct order HOT 1
- Signed in user is not properly redirected when using a URL with lessonId or classId HOT 1
- Improve loading state on learner quiz report page HOT 3
- Create technical specification for post-setup intro to kolibri onboarding flow
- When user deletes a section by way of the "Options" button -> Delete section, they should see the same "are you sure" modal they see when doing so from within the "Section editor" side panel
- The "Options" dropdown menu should have it's `@tab` handler updated so that it cycles through the list items. `@esc` should close the menu and focus on the "Options" button HOT 1
- Setup Wizard - Devices that are not fully setup are showing up in the 'Select device' modal HOT 2
- 'Select a source' modal - Broken 'Add new device' link HOT 2
- Quiz Management: Improve messaging around question replacement requirements
- Quiz management: Notify user of replacements vs selection mismatch
- Quiz management: Add "Update resources" option to Options dropdown
- EQM & Learn: Update helpers throughout so that the user can take a quiz & view the report
- Post-setup 'Intro to Kolibri' Onboarding
- Add necessary strings for translation.
- Develop and implement pop-up elements with informational tips, along with continue and skip buttons options within the user interface.
- Integrate the onboarding flow into the existing setup and first-time user experiences based on the Gherkin scenarios.
- It is possible to hijack an account which was created via OSUser 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 kolibri.