Skip to content

Commit

Permalink
feat: read events from please.json (can still be overridden by params)
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Aug 15, 2019
1 parent 6a46030 commit 18512d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion please
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ trigger() # $1 = event
GCFMT="%s (%an)" # git commit log format
REPO=`git config --get remote.origin.url | sed -e 's/git@github.com://;s/https:\/\/github.com\///;s/.git//'`
if [ -f ./please.json ]; then
eval $(cat ./please.json | jq -r 'to_entries|map("EVENTS[\(.key)]=\"\(.value)\"")|.[]')
fi
# argv parsing
while [[ $# -gt 0 ]]
Expand Down

0 comments on commit 18512d5

Please sign in to comment.