sindresorhus/refined-github

From a GitHub Action workflow file add a button to see the workflow in action #3008

maelle posted onGitHub

Thanks for refined-github!

Could a button help going from e.g. https://github.com/r-hub/docs/blob/master/.github/workflows/pr.yml to https://github.com/r-hub/docs/actions?query=workflow%3ACommands using the workflow name?

This way when trying to assess the use of an action, one would use GitHub search, then find workflow files, then from the files easily see logs of the action.


Definitely. The UI around GH Actions is patchy.

This feature should be very similar to html-preview-link

posted by fregante almost 5 years ago

I know nothing about TypeScript (yet?) so I'm not sure I could help but is there an example of feature reading a YAML field from a document?

posted by maelle almost 5 years ago

It doesn't have to be perfect, something like this should cover most cases:

const actionName = 
    $$('.blob-code-inner')
        .find(line => line.textContent.startsWith('name'))
        .textContent
        .replace(/^name:\s+/, '')
        .trim()

Plus an extra .replace to trim quotes.

posted by fregante almost 5 years ago

I'll give it a try then, thank you!

posted by maelle almost 5 years ago

Fund this Issue

$0.00
Funded

Pull requests