Skip to content

Add go-to-action-from-file feature - #3011

Merged
fregante merged 26 commits into
refined-github:masterfrom
maelle:gha
Apr 23, 2020
Merged

fregante merged 26 commits into
refined-github:masterfrom
maelle:gha

Conversation

@maelle

@maelle maelle commented Apr 16, 2020 •

Copy link
Copy Markdown
Contributor

@maelle
maelle marked this pull request as ready for review April 16, 2020 14:49
@maelle

maelle commented Apr 16, 2020

Copy link
Copy Markdown
Contributor Author

Actually it fails on other pages, that shouldn't include it, on it, sorry.

@maelle

maelle commented Apr 16, 2020

Copy link
Copy Markdown
Contributor Author

Now I think it's ok.

features.add({
id: __featureName__,
description: 'Adds a link to view Action workflow in action.',
screenshot: 'https://user-images.githubusercontent.com/44045911/67634792-48995980-f8fb-11e9-8b6a-7b57d5b12a2f.png'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I haven't added the screenshot yet, will do after your review, since I suspect the button name can change.


features.add({
id: __featureName__,
description: 'Adds a link to view Action workflow in action.',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This description could be improved.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to make it clearer.

@sindresorhus

Copy link
Copy Markdown
Member

Make sure to run npm test locally and that is passes.

@maelle

maelle commented Apr 16, 2020

Copy link
Copy Markdown
Contributor Author

Short question (sorry!): select.all('.blob-code-inner') is apparently not a good idea (error in tests) but I'm not sure what it should actually be? I didn't understand $$('.blob-code-inner'). I tried finding similar examples but failed at that.

@maelle

maelle commented Apr 16, 2020 •

Copy link
Copy Markdown
Contributor Author

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the PR!

Comment thread source/refined-github.ts Resolved
@fregante

fregante commented Apr 16, 2020 •

Copy link
Copy Markdown
Member

select.all('.blob-code-inner') is apparently not a good idea (error in tests) but I'm not sure what it should actually be? I didn't understand $$('.blob-code-inner'). I tried finding similar examples but failed at that.

$$ is equivalent to select.all, it's a console helper. The code should be fine.

The linter is probably just complaining about the whitespace, to be fixed with npx xo --fix

@maelle

maelle commented Apr 16, 2020

Copy link
Copy Markdown
Contributor Author

Thanks both for your reviews!

I can explore more tomorrow, at the moment the feature works but there are still errors I need to fix

ERROR in /home/maelle/Documents/misc_projects/refined-github/source/features/go-to-action-from-file.tsx(10,2):
TS2531: Object is possibly 'null'.
ERROR in /home/maelle/Documents/misc_projects/refined-github/source/features/go-to-action-from-file.tsx(10,2):
TS2532: Object is possibly 'undefined'.
ERROR in /home/maelle/Documents/misc_projects/refined-github/source/features/go-to-action-from-file.tsx(25,5):
TS2322: Type 'URL' is not assignable to type 'string'.

@refined-github refined-github deleted a comment from maelle Apr 16, 2020

@fregante fregante left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This works! 🎉

However "See runs" isn't super clear, but I can't find anything better either :(

Thoughts on this?

play

@maelle

maelle commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

Yay, thanks!

I like the idea of using an icon but the "play" one would make me think I can launch a run. 🤔

@maelle

maelle commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

Keywords that might help or not: "logs", "previous runs", "past runs".

@fregante

Copy link
Copy Markdown
Member

I like Past runs, even if not technically correct (some runs might still be in progress)

@maelle

maelle commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

Did we try updating it at the same time? 🤔

@fregante

Copy link
Copy Markdown
Member

That’s not possible with git

@maelle

maelle commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

Right, just me being useless from a mobile device. I'll edit from my laptop once "Past runs" is the confirmed choice. :-)

@maelle

maelle commented Apr 23, 2020

Copy link
Copy Markdown
Contributor Author

I changed the name, are further changes needed?

@fregante

fregante commented Apr 23, 2020 •

Copy link
Copy Markdown
Member
  1. Update screenshot
  2. Update readme (add it to "Repositories" section, I think)

@maelle

maelle commented Apr 23, 2020

Copy link
Copy Markdown
Contributor Author

I'm getting an error, I'm guessing I'll need to rebase my PR.

@maelle

maelle commented Apr 23, 2020

Copy link
Copy Markdown
Contributor Author

(on it)

@maelle

maelle commented Apr 23, 2020

Copy link
Copy Markdown
Contributor Author

Done. 🙂

@fregante fregante changed the title From a GitHub Action workflow file add a button to see the workflow in action Add go-to-action-from-file feature Apr 23, 2020
@fregante
fregante merged commit 90897d6 into refined-github:master Apr 23, 2020
@fregante fregante mentioned this pull request Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

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

3 participants