Look up repository by URL instead of by owner and name?


#1

How can I look up a repository by URL instead of by owner and name?


List repositories filtered by owner and repo name
#2

You should be able to use something like this:

query {
  resource(url:"https://github.com/rails/rails") {
    ... on Repository {
      name
      owner {
        login
      }
    }
  }
}