Docs.rs: Consider using some sort of webhook to monitor for crate uploads

Created on 1 Jul 2016  路  4Comments  路  Source: rust-lang/docs.rs

Corresponding crates.io issue: https://github.com/rust-lang/crates.io/issues/381

E-medium P-medium

Most helpful comment

Yeah, we can definitely use the GitHub webhook on the repository index. I can set it up when we are ready.

All 4 comments

Triage: I've messed around with the GitHub api some, I think this could be a viable thing to do because if done right we could just treat github updates as another web request. It'd allow us to respond to crate uploads in a shorter span of time as well as making less requests to github, which is just considerate.

Maybe implement this after the hyper transition, I think it'd be best fit in an async world and would make the transition itself less work

@Kixiron This refers to uploads to crates.io, not anything on github. We'd need crates.io to add a webhook API first: https://github.com/rust-lang/crates.io/issues/381

Using a github hook would have a similar effect until the crates.io one was implemented, as github would send post requests to us whenever the index repo was updated. I do agree though, using crates.io themselves would be a preferable situation

Yeah, we can definitely use the GitHub webhook on the repository index. I can set it up when we are ready.

Was this page helpful?
0 / 5 - 0 ratings