Via graphQL how is object.commitUrl supposed to be used? #151874
Replies: 3 comments
-
Incorrect Object Type in Query: Your query is navigating through object(expression: "HEAD:"), expecting a Tree, but commitUrl is not available at this level. query { This fetches the latest 10 commits and their URLs. Incorrect commitUrl Resolution: The commitUrl should follow this pattern: Ensure the GitHub token has repo scope for private repositories or public_repo scope for public repositories. If the repository was recently made public, GitHub’s cache might still treat some resources as private. Try waiting a bit or clearing caches by pushing a new commit. |
Beta Was this translation helpful? Give feedback.
-
Incorrect Object Type in Query: Your query is navigating through object(expression: "HEAD:"), expecting a Tree, but commitUrl is not available at this level. query { This fetches the latest 10 commits and their URLs. Incorrect commitUrl Resolution: The commitUrl should follow this pattern: Ensure the GitHub token has repo scope for private repositories or public_repo scope for public repositories. If the repository was recently made public, GitHub’s cache might still treat some resources as private. Try waiting a bit or clearing caches by pushing a new commit. |
Beta Was this translation helpful? Give feedback.
-
A |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Say for example I have the following query
All of the returned
commitUrl
result in 404 when navigated to via the browser even though the repository is public?I thought maybe it required auth, but
Returns Not Found - how is the
commitUrl
supposed to be used?Beta Was this translation helpful? Give feedback.
All reactions