Charcoal-SE / metasmoke

Web dashboard for SmokeDetector.
https://metasmoke.erwaysoftware.com
Creative Commons Zero v1.0 Universal
43 stars 34 forks source link

Nice to Have: Trigger charcoal-se.org rebuilds whenever a wiki page is updated #140

Closed j-f1 closed 7 years ago

j-f1 commented 7 years ago

metasmoke can do this by listening for GollumEvents from Charcoal-SE/metasmoke and Charcoal-SE/SmokeDetector and calling the Travis API to request a restart of the latest build on Charcoal-SE/charcoal-se.github.io. This way, the website stays up-to-date with the wiki.

Undo1 commented 7 years ago

That can absolutely be done. It'd be great if you had the code to trigger the Travis build handy; I can take care of hooking us in to the GH webhook.

j-f1 commented 7 years ago

Code to trigger Travis build:

require 'travis'
Travis.github_auth("<GH Token>")
Travis::Repository.find('Charcoal-SE/charcoal-se.github.io').last_build.restart

(GH Token must be for an account with push access to Charcoal-SE/charcoal-se.github.io)

Undo1 commented 7 years ago

Should work now. Reopen if it stops.