replace gist with bitbucket api