Otanikotani / view-github-actions-idea-plugin

Intellij IDEA plugin to browse execution of GitHub actions
MIT License
25 stars 8 forks source link

Display link to open unfinished logs in browser #40

Open bb1950328 opened 3 years ago

bb1950328 commented 3 years ago

Currently, the message for unfinished runs is:

Logs are unavailable - either the workflow run is not finished (currently GitHub API returns 404 for logs for unfinished runs)
or the url is incorrect. The log url: https://api.github.com/repos/user/repo/actions/runs/123456789/logs

A link to view the log in the browser instead would be useful. The conversion is very simple: https://api.github.com/repos/{user}/{repo}/actions/runs/{runNumber}/logs becomes https://github.com/{user}/{repo}/actions/runs/{runNumber}