-
Notifications
You must be signed in to change notification settings - Fork 0
Filter gists by fileName #3
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
Comments
Could be useful. Maybe I could implement it next week. If you have a concrete idea of implementation, a test defining the interface or something else, feel free to share it by pull request. Thank you! |
Basically Svelte REPL saves examples as gists and we're trying to retrieve all public examples that people have written. For example, this example https://svelte.technology/repl?version=2.15.0&gist=1d8a53bf15e8033a62cca847274286aa is based on this gist https://gist.github.com/mindrones/1d8a53bf15e8033a62cca847274286aa. Hence, I'm thinking that we might just change that convention and call that meta file An example API could could be: .getAll({
filterBy: [
{hasFileWithName: "svelte.json"}, // tier: resource
]
}) Being tier Hope this helps, thanks! |
I just added the functionality in this commit Its now available in version 1.1.0. Now you can do (for example):
Thank you for your feedback @mindrones |
Hi @jvcalderon, I just tried it and works perfectly thanks a lot for implementing it! |
Just an idea, but it just occurred to me that it could be useful to search for gists containing a file with a specific name, for example a meta file that always has the same name, for example "meta.json" for the Svelte REPL (an example here https://gist.github.com/mindrones/1d8a53bf15e8033a62cca847274286aa#file-meta-json).
The text was updated successfully, but these errors were encountered: