Skip to content

Instantly share code, notes, and snippets.

@vquaiato
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vquaiato/3dd336e542404c47b2a6 to your computer and use it in GitHub Desktop.
Save vquaiato/3dd336e542404c47b2a6 to your computer and use it in GitHub Desktop.
working integration from git bash

1. Create the shell script

#!/bin/bash
curl -X POST --data-urlencode "task=$1" https://api.workingon.co/hooks/incoming?token={YOUR WORKING ON INTEGRATION TOKEN} >/dev/null
echo "Task sent!";

Save this wherever you want (I am saving under my $HOME folder on Windows), you don´t even need to add a file extension to it ;)

2. Create a bash_profile

Just type in the git bash the following

vim ~/.bash_profile

Then you should type i to enter de vim insertion mode. Then paste the following

PATH="$HOME/on:$PATH"

This will make your script available to your bash without the need to type the full path to the script file. I am supposing that you saved your script with the name on right under your home folder (in Windows it is C:\Users\your_user)

3. Enjoy the integration

Now you can type something like this between your git pushes

on doing some stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment