Github & Heroku Webhooks: add a shortcut when it is pushed to its original position, close it

I love webhooks. The github is also theirs, geroku. We actively use commit messages. Fixes #345 git commit message that will close issue 345 when pushed to origin

I would like to achieve:

  • When I click on origin , a label is added to the problem, something like Fixed
  • When I click on the heroku dev application, a label is added to the problem, something like In Dev
  • When I click on the heroku prod application, the problem is really closed.

Is there any way I can achieve this?

Greetings

+6
source share
2 answers

Unfortunately, this cannot be done by connecting the hero directly to github, as a little data processing is needed.

I also checked If this is what , if possible, but unfortunately there is no place to run a small script there, as far as I checked ...

I ended up writing my own heroku application that does the job.

https://github.com/copass/copass-hook

  • When clicking on github it is actually closed (normal behavior).
  • When you click on dev, the milestone "In Dev" is applied
  • When you click on prod, the milestone "In Prod" is applied

I found it more interesting to use the milestones since we are not currently using them. But that would be the same logic.

Feel free to unlock the app if you like it!

+3
source

You can add your own web hooks to GitHub using the web hook API .

This should take care of when to launch the web hook, but you will need to write your own code to add shortcuts to your problems that you can achieve using their problem APIs .

For Heroku, you need to configure the HTTP POST Hook with your Add Hooks add-on.

+1
source

All Articles