-
Notifications
You must be signed in to change notification settings - Fork 2
Description
While switching to the GitHub API made the tool a lot better, but unfortunately it doesn't work for private repositories. Interestingly, I got two different kinds of problems, and I'm not sure where the repositories differ.
For the first repository, I got the following:
$ re
unable to infer project from git repo; assuming cockroachdb/cockroach
Of course, I can just specify the repository with -p
but it would be nice if this could be detected automatically, too. I started to implement that in my fork before you switched to the GitHub API. I didn't finish that since I didn't understand the GitHub API at all. 😅
For the other repository, I got the following error
$ re
2021/07/24 11:26:04 GET https://api.github.com/search/issues?q=type:pull-request+state:open+repo:NicolaiRuckel%2FPaper+involves:NicolaiRuckel+updated:%3E=2021-06-24&page=1&per_page=100&sort=created: 422 Validation Failed [{Resource:Search Field:q Code:invalid Message:The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.}]
If I specify the project with -p
it works. I even tried to clone the repository again to make sure I didn't mess up anything locally. Do you have any idea why this could happen? It looks like the repository name in the GET request got cut off after a hyphen. The repository for the first example also contains a hyphen, even though I get a different error.