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: copasshook_app: copass-hook (this app)
-
Clone
hook_app -
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> -
Update
server.json line 16:
var appNameToMilestoneNumber = {
<main_app> : <milestone_id>
}-
Commit changes:
git commit -am 'Updated milestone numbers' -
Create a heroku app for
hook_appand push to herokugit push heroku master -
Add environment variables to
hook_app:heroku --app <hook_app> config:set GITHUB_NAME=<GITHUB_NAME> GITHUB_PASSWORD=<GITHUB_PASSWORD> -
Add the deploy-hook to you heroku
main_app(doc) :heroku addons:add deployhooks:http --url=http://<hook_app>.herokuapp.com -
You are good to go!
- 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