pkgjs / wiby

"Will I break you" - a tool for testing dependents
Apache License 2.0
33 stars 7 forks source link

Investigate repository_dispatch #88

Closed bnb closed 3 years ago

bnb commented 3 years ago

Per the discussion in today's meeting, wanted to create an issue for checking out the repository_dispatch trigger for an Action, which allows an Action to be triggered by a GitHub API call. This might be useful for triggering an Action in the root Wiby repo to report back when a run fails/succeeds.

dominykas commented 3 years ago

Thanks! This does look useful, but since we can't rely on the target repos talking back to the parent repo, this still means having something external to trigger it, I think...

dominykas commented 3 years ago

Went through the docs again - repository_dispatch event needs something to call the POST /repos/{owner}/{repo}/dispatches endpoint.

The only way I can imagine this working is to create some sort of a wiby "callback" workflow on the target dependent repo, but that probably defeats the purpose

I'll close this for now and keep on thinking thinking thinking...