Launchpad offers online source code hosting for Git & Bazaar projects, with powerful collaboration tools, code review, and bugs tracking.
This integration will post commits, merge requests to a channel in Slack.
Setting up a Incoming WebHook in Slack
Go to the Incoming WebHooks app, and make sure you generate Webhook URL to the channel where you want the messages to go, it looks something like the following url :
Deploying to Heroku
$ git clone email@example.com:daker/launchpad-slack.git $ cd launchpad-slack $ heroku create $ git push heroku master $ heroku open
Once the app is deployed, under your app settings you need to add a
SLACK_INCOMING_WEBHOOKS entry to the Config Variables section which will hold the Slack Incoming WebHook url you generated before, finally make sure you restart the app.
Setting up a webhook in Launchpad
Copy the heroku app url, then go to your branch page in Launchpad.net, click on "Manage webhooks" then "Add webhook" and finally make sure the url looks something like the following :
Setting up a Slash Command
You can also use Slash Commands to check bugs on Launchpad, under your app settings you need to add a
SLACK_COMMANDS_TOKEN entry to the Config Variables section which hold the Slash Command token and finally make sure the url looks something like the following :
and use it like this :
/YOUR_SLASH_COMMAND BUG_ID ex : /lp 100000
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request