I get 403 errors and a hanging page when i try to set up slack integrations, any idea what causes this?
These are the URL's
GET
bitbucket.org/api/2.0/repositories/MyAccount/repo-name/hooks/?pagelen=100
POST
bitbucket.org/api/2.0/repositories/MyAccount/repo-name/hooks/
If anyone else knows bitbucket well there is also the option to prevent deletion of repos which when i try to enable a !Forbidden message also appears. Are these related to my account being on the free tier? There is very little error feedback.
From an app's page, click the Add to Slack button. Then follow the prompts to install the app or connect your account. You'll see the option to connect your account after clicking Add to Slack if an app has already been installed in your workspace. You can also find and install apps from your workspace.
To get to your Bitbucket settings, click your avatar in the lower-left corner and select Bitbucket settings.
Run git remote -v to see the current remote URL. Update the remote URL with git remote set-url using the current and new remote URLs.
edit
From Atlassian's Bitbucket Cloud for Slack how-to:
(Requires repo admin permissions)
Choose one of the following:
Choose the Slack workspace and channel to connect to your repository.
/edit
Not sure how you're trying to do it, but here is how I got mine to work:
Make sure you have the Bitbucket app installed on Slack. It should show up on your yourteam.slack.com/apps/manage page. In case it doesn't, search Bitbucket on the app directory
Once in the Bitbucket app page on Slack, go to its configuration page (or create a new configuration). Decide to which channel or user should Bitbucket notifications be posted.
On the same page, find the Webhook URL. It looks something like https://hooks.slack.com/services/LONGST/RINGOF/RANDOMChAraCTeRS
On your Bitbucket repository page, click Settings/Webhooks.
Use the Slack URL to create a new Webhook. Assign a unique name to it. I believe Slack only supports Repository Push type of trigger.
I hope it works for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With