Slack: Provide a deployments API in slack

Created on 14 Sep 2018  Â·  11Comments  Â·  Source: integrations/slack

It would be nice to provide a deployments API in slack such that a command such as /github deploy would trigger the API.

https://developer.github.com/v3/repos/deployments/

Todo:

  • add in a bit more information about exactly which of the APIs we want to call
  • we should listen to the webhooks to inform slack about the status of deployments

Most helpful comment

@torbjornvatn we are waiting on some changes that the team in charge of app permissions is going to do to, in order to make the permissions upgrade smoother. Sorry for the inconvenience.

All 11 comments

we should listen to the webhooks to inform slack about the status of deployments

Deployment status is already implemented, so it should just be a matter of triggering the deployment: https://github.com/integrations/slack/blob/master/lib/activity/index.js#L39

I’m already working on this. I’m already creating deployments from slack.

We’ll need to add write permissions to the slack app on deployments

On Wed, 19 Sep 2018 at 19:38 Brandon Keepers notifications@github.com
wrote:

we should listen to the webhooks to inform slack about the status of
deployments

Deployment status is already implemented, so it should just be a matter of
triggering the deployment:
https://github.com/integrations/slack/blob/master/lib/activity/index.js#L39

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/integrations/slack/issues/688#issuecomment-422893247,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADFNjUuAyd1VyViymkGafQ_U5B42bZRks5ucoEBgaJpZM4Wpe7Q
.

Does this mean that /github deploy should start working now?

@judoole this is in the codebase but not enabled yet. We need to ask to upgrade permissions of the app in order to enable it so we are waiting to do the proper communication on why we need upgraded permissions, etc.

Thanks for a quick answer and good work @gimenete!

@gimenete , do you have an estimate for when /deploy will be enabled? It sounds like a really useful feature.

@wushujames In the meantime, check out https://getslashdeploy.com It already provides /deploy with a bunch of other useful commands and it's built on top of GitHub deployment API - so works out of the box. I've built it to specifically uplift GH deployment workflows.

@gimenete any news on when the deploy functionality will be enabled?

@torbjornvatn we are waiting on some changes that the team in charge of app permissions is going to do to, in order to make the permissions upgrade smoother. Sorry for the inconvenience.

@gimenete did you make any progress on this?

I get this when I try /github deploy owner/repo list

Screen Shot 2019-05-03 at 16 38 54

Was this page helpful?
0 / 5 - 0 ratings