Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support action workflow run view #1697

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xt0rted
Copy link
Member

@xt0rted xt0rted commented Nov 13, 2022

Add support for linking action workflows in the new actions UI. This is more of a proof of concept, but figured I'd PR it for feedback. Unfortunately there's no other classes or attributes I can see that would let us get this link like we do on the source pages.

Example: https://github.com/OctoLinker/OctoLinker/actions/runs/3457001003/workflow

Checklist:

  • If this PR is a new feature, please provide at least one example link
  • Make sure all of the significant new logic is covered by tests

// When current page is an actions run workflow file
if (!ret) {
ret = $(
'.actions-fullwidth-module .text-small .Link--secondary',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should switch to https://github.com/refined-github/github-url-detection

Jumpcat.dev is using github-url-detection and it works really well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would that help get the url from this link? The value of it is https://github.com/OctoLinker/OctoLinker/blob/e9e60b630a37e980e48a816e4aaf6355a3fd8707/.github/workflows/ci.yml and it's the only spot on the page with it.

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I shouldn't comment on PRs after midnight 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants