Skip to content

Hooker when heroku is pushed, to add milestone In Dev/In Prod to related issues

Notifications You must be signed in to change notification settings

copass/copass-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copass Hook

This app will automatically update the issues you referenced in you commits (eg. This commit fixes #34) by adding a milestone (eg. In dev or In Prod) depending on the config you set.

We have 2 apps here:

  • main_app : copass
  • hook_app : copass-hook (this app)
  1. Clone hook_app

  2. Create a milestone in github's main_app. Retrieve its number by filtering over the milestone and looking at the url : https://github.com/:owner/:repository/issues?milestone=<milestone_id>

  3. Update server.js on line 16:

var appNameToMilestoneNumber = {
  <main_app> : <milestone_id>
}
  1. Commit changes: git commit -am 'Updated milestone numbers'

  2. Create a heroku app for hook_app and push to heroku git push heroku master

  3. Add environment variables to hook_app: heroku --app <hook_app> config:set GITHUB_NAME=<GITHUB_NAME> GITHUB_PASSWORD=<GITHUB_PASSWORD>

  4. Add the deploy-hook to you heroku main_app (doc) : heroku addons:add deployhooks:http --url=http://<hook_app>.herokuapp.com

  5. You are good to go!

TODOS:

  • Move appNameToMilestoneNumber to environment config
  • Change authentication system
  • Improve interactions with github (play with labels, check current milestone before updating)
  • Find a solution to auto-update forgotten issues

About

Hooker when heroku is pushed, to add milestone In Dev/In Prod to related issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published