#!/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 ;)
- REMEMBER * _to get your working on integration token here https://www.workingon.co/tools
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)
Now you can type something like this between your git pushes
on doing some stuff