summaryrefslogtreecommitdiff
path: root/queries/github
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@anshulg.com> 2025-06-12 01:53:38 -0700
committerGravatar GitHub <noreply@github.com> 2025-06-12 01:53:38 -0700
commitc9adb09abc626cdcc35c345a635ad8c163fcff3e (patch)
tree93f78bf8e5910a044f96ed77aca498ac60ada804 /queries/github
parent179679633a9fc3317585167f86c87a7fe8394945 (diff)
parentb78875e2265339b58c7a67cc83e6db2988aa0d74 (diff)
downloadgithub-mirror-c9adb09abc626cdcc35c345a635ad8c163fcff3e.tar.gz
github-mirror-c9adb09abc626cdcc35c345a635ad8c163fcff3e.tar.zst
github-mirror-c9adb09abc626cdcc35c345a635ad8c163fcff3e.zip
Merge pull request #2 from ansg191/srht
Diffstat (limited to 'queries/github')
-rw-r--r--queries/github/gh_identity.graphql5
-rw-r--r--queries/github/gh_list_repos.graphql16
2 files changed, 21 insertions, 0 deletions
diff --git a/queries/github/gh_identity.graphql b/queries/github/gh_identity.graphql
new file mode 100644
index 0000000..8381490
--- /dev/null
+++ b/queries/github/gh_identity.graphql
@@ -0,0 +1,5 @@
+query {
+ viewer {
+ login
+ }
+} \ No newline at end of file
diff --git a/queries/github/gh_list_repos.graphql b/queries/github/gh_list_repos.graphql
new file mode 100644
index 0000000..d7d36b3
--- /dev/null
+++ b/queries/github/gh_list_repos.graphql
@@ -0,0 +1,16 @@
+query GetUserRepos($username: String!, $after: String) {
+ repositoryOwner(login: $username) {
+ repositories(first: 100, after: $after, ownerAffiliations: OWNER) {
+ nodes {
+ name
+ url
+ isFork
+ isPrivate
+ }
+ pageInfo {
+ hasNextPage
+ endCursor
+ }
+ }
+ }
+} \ No newline at end of file