18F / dashboard

DEPRECATED: A site to track our projects' status and much, much more...
Other
44 stars 25 forks source link

[WIP] team-api-update.js webhook listener #244

Closed mbland closed 9 years ago

mbland commented 9 years ago

Hookshot listener for listening for automated Team API updates and creating pull requests against the staging branch.

Have it running manually right now; about to open a PR to add an .about.yml file to the Dashboard, to see if the end-to-end system is working as advertised.

cc: @gboone

gboone commented 9 years ago

Cool. Thanks for the leg work, @mbland. Going to merge this after Federalist gets it's about file in place and then we should see the new project right away. Might also throw a test in to make sure the number of pages generated matches the number of projects in the generated data file.

mbland commented 9 years ago

So I managed to run this manually and verify the .about.yml -> team-api.18f.gov -> Dashboard rebuild webhook flow. Pushed commits with the working code. All's that left is:

mbland commented 9 years ago

Also: https://team-api.18f.gov/public/api/projects/dashboard/

mbland commented 9 years ago

BTW, this should go in and get deployed before 18F/federalist#142 to see the flow actually working.

gboone commented 9 years ago

Alright, we'll merge this and #246 now and then keep an eye out for 18F/federalist#142

mbland commented 9 years ago

FWIW, I launched the server by hand via:

$ forever start -l $HOME/team-api-update.log -a staging/dashboard/deploy/team-api-update.js

And you can already see the Dashboard entry on the Dashboard staging site. Which is to say, if you want to see .about.yml updates live in staging, you can.