You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if the extension is used on a GitHub issue page for a repository that doesn't have a .github/replies.yml, the API call to https://api.github.com/repos/${userOrOrganization}/${repository} fails with a 404. That failure shows up in the dev tools console. Annoying.
It'd be nice to find a GitHub API that doesn't cause these 404s when the file isn't found. Maybe a GraphQL one has such a feature?
The text was updated successfully, but these errors were encountered:
I see that this issue isn't accepting prs however, in attempt to solve issue #43 (didn't understand the out of scope part), I found an API that lets you search through the git tree.
Aha that's a nice investigation! Thank you for putting this together! 🙏
Upside: I like very much that it shouldn't give a 404 when the file doesn't exist.
Downside: that extra API call, as you mentioned. It means the extension will run slower and less reliably.
Let's investigate alternate ways to get this working that take up just one network request still. (aside: I just filed #149 to tackle after this issue)
A couple of options that popped up while searching for alternatives:
Overview
Right now, if the extension is used on a GitHub issue page for a repository that doesn't have a
.github/replies.yml
, the API call tohttps://api.github.com/repos/${userOrOrganization}/${repository}
fails with a 404. That failure shows up in the dev tools console. Annoying.It'd be nice to find a GitHub API that doesn't cause these 404s when the file isn't found. Maybe a GraphQL one has such a feature?
The text was updated successfully, but these errors were encountered: