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

Meta: Support new screenshot URLs in readme parser #7130

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

fregante
Copy link
Member

@fregante fregante commented Dec 1, 2023

@fregante fregante added the meta Related to Refined GitHub itself label Dec 1, 2023
@@ -0,0 +1,1137 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
Copy link
Member Author

Choose a reason for hiding this comment

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

Snapshots are a bit annoying, but I think in the past we had at least one instance of nuking the options page due to some parser mistakes.

This can also help as to double-check what is actually being extracted from the readme. Currently the only way is to check the generated bundles or opening the options page (where screenshot URLs are not immediately visible for example)

On a related note, I wonder if we should export this list to a JSON file into the repo so that it can be used.

https://vitest.dev/api/expect.html#tomatchfilesnapshot

@fregante fregante marked this pull request as ready for review December 1, 2023 16:12
@@ -0,0 +1,193 @@
[
"action-pr-link",
Copy link
Member Author

Choose a reason for hiding this comment

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

This is great. We now have a static JSON file with a list of features.

This could enable things like #4493 😜

It can potentially also be transformed to a raw-text list

@fregante fregante enabled auto-merge (squash) December 1, 2023 16:14
@fregante fregante merged commit c1af7a2 into main Dec 1, 2023
10 checks passed
@fregante fregante deleted the new-screenshots-support branch December 1, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Related to Refined GitHub itself
Development

Successfully merging this pull request may close these issues.

None yet

1 participant