Skip to content

Commit

Permalink
refactor: init support for bitbucket
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Mar 3, 2021
1 parent b453437 commit 536aa0f
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 @@ -206,8 +206,10 @@ trigger() # $1 = event
fi
}

VCS=${VCS:-github.com}
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//')
REPO=$(git config --get remote.origin.url | sed -e "s/git@$VCS://;s/https:\/\/$VCS\///;s/\.git//")
[[ "$VCS" == *"bitbucket"* ]] && CMT=commits || CMT=commit

# load events
[[ -f ./please.json ]] && eval $(cat ./please.json | jq -r 'to_entries|map("EVENTS[\(.key)]=\"\(.value)\"")|.[]')
Expand Down

0 comments on commit 536aa0f

Please sign in to comment.