Guest User

SmartGit GitHub GraphQL Query

a guest
Mar 25th, 2024
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. URL: https://api.github.com/graphql
  2. Encoding: UTF-8
  3. {"query":"query {
  4. viewer {
  5. id
  6. topRepositories (orderBy: {direction: ASC, field: UPDATED_AT}, first: 100) {
  7. pageInfo {
  8. hasNextPage
  9. endCursor
  10. }
  11. nodes {
  12. ... on Repository {
  13. id
  14. name
  15. url
  16. sshUrl
  17. owner {
  18. login
  19. }
  20. defaultBranchRef {
  21. name
  22. }
  23. parent {
  24. name
  25. owner {
  26. login
  27. }
  28. }
  29. }
  30. }
  31. }
  32. repositories (affiliations: [OWNER, ORGANIZATION_MEMBER, COLLABORATOR], first: 100) {
  33. pageInfo {
  34. hasNextPage
  35. endCursor
  36. }
  37. nodes {
  38. ... on Repository {
  39. id
  40. name
  41. url
  42. sshUrl
  43. owner {
  44. login
  45. }
  46. defaultBranchRef {
  47. name
  48. }
  49. parent {
  50. name
  51. owner {
  52. login
  53. }
  54. }
  55. }
  56. }
  57. }
  58. organizations (first: 100) {
  59. pageInfo {
  60. hasNextPage
  61. endCursor
  62. }
  63. nodes {
  64. ... on Organization {
  65. id
  66. repositories (first: 100) {
  67. pageInfo {
  68. hasNextPage
  69. endCursor
  70. }
  71. nodes {
  72. ... on Repository {
  73. id
  74. name
  75. url
  76. sshUrl
  77. owner {
  78. login
  79. }
  80. defaultBranchRef {
  81. name
  82. }
  83. parent {
  84. name
  85. owner {
  86. login
  87. }
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }
  97. "}
Advertisement
Add Comment
Please, Sign In to add comment