Comments (9)
I'm also interested in this. I've put the whole code in post-commit
but it does not seem to start.
It neither gets inside the while
on line 311:
while read line; do
set -- $line
notify $*
RET=$?
done
there seems no line
to be read. If I add an echo test
at the beginning of the script I can see it so I know post-commit
is executed. Any suggestions? Thanks.
from git-slack-hook.
According to some other hooks: oldrev newrev refname
oldrev will be previous commit, newrev latest commit and refname will be
something like refs/heads/master
Met vriendelijke groet,
Jo Vandeginste
from git-slack-hook.
I need this as well, any help?
from git-slack-hook.
Hey guys yes it should work with locally hosted git as well
from git-slack-hook.
you just need to add it to your post commit hook in locally created git repository
from git-slack-hook.
Exactly. Post-recieve hooks run after a remote gets updates. Post-commit runs after each commit. For some reason, however, my post-commit is not working.
from git-slack-hook.
@Brendonwbrown is the hook not executing, or is the script not behaving as expected?
from git-slack-hook.
I think you will need to write a wrapper script to be called from either 'commit-msg' or 'post-commit' - see https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
from git-slack-hook.
Yes, seems so. At this point the question is what we need to pass over to the original script, as arguments, in order to start the while loop? Thanks for feedback.
from git-slack-hook.
Related Issues (19)
- Which Hook? HOT 1
- Double-quotes in commit message HOT 3
- Curl wasn't working for me HOT 2
- Git Noob - Help setting up? HOT 2
- Commit messages garbled in notifications; sed-related HOT 1
- How to disable optional hook configs
- message garbled with multiple commits in push HOT 3
- Post failed when '&' include HOT 1
- Provide other ways of configuring parameters
- Unusable in FreeBSD HOT 1
- Change shebang to env
- Changesets
- Specify in documentation that Nice Names must be URL-encoded
- Multiple line commits HOT 6
- REQUEST: Honor newlines in commit message
- backslash in name or commit message should be quad escaped to work (otherwise slack silently ignores message)
- repo-root is not optional
- Documentation typo for repos-root parameter 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 git-slack-hook.