cli/pkg/cmd/run
Mislav Marohnić ac348b0dec Fix requesting REST sub-resources on GHE
GitHub REST resources typically return full URLs to fetch related
resources at. We used to parse those URLs to find just the path portion
and pass that in to the `REST()` function, which only accepted paths. By
doing so, we are essential de-constructing a URL just to re-assemble it
again. While re-assembling it for Enterprise, though, we would
accidentally inject an extra `api/v3/` prefix where one was not needed.

The solution is just to use raw URLs as reported by the REST API with
no modifications. This extends the `REST()` function to accept full URLs
in addition to just paths to resources.
2021-04-19 12:41:09 +02:00
..
download Fix extracting workflow artifact to a relative path 2021-04-13 19:15:14 +02:00
list bump run list limit 2021-04-13 22:42:38 -05:00
rerun minor usage improvements 2021-04-13 22:43:02 -05:00
shared Fix requesting REST sub-resources on GHE 2021-04-19 12:41:09 +02:00
view Fix requesting REST sub-resources on GHE 2021-04-19 12:41:09 +02:00
watch minor usage improvements 2021-04-13 22:43:02 -05:00
run.go unhide actions commands 2021-04-13 22:08:06 -05:00