summaryrefslogtreecommitdiff
path: root/queries/github
diff options
context:
space:
mode:
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