Skip to content

Commit

Permalink
feat(github): releases, gists(graphql) (#179)
Browse files Browse the repository at this point in the history
closes #174
  • Loading branch information
shreyas1599 committed Jan 31, 2021
1 parent b9852e1 commit fba6e4c
Show file tree
Hide file tree
Showing 17 changed files with 44,386 additions and 37,381 deletions.
397 changes: 396 additions & 1 deletion lib/graphql/github.ast.gql.dart

Large diffs are not rendered by default.

543 changes: 543 additions & 0 deletions lib/graphql/github.data.gql.dart

Large diffs are not rendered by default.

78,653 changes: 41,398 additions & 37,255 deletions lib/graphql/github.data.gql.g.dart

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions lib/graphql/github.graphql
Expand Up @@ -32,6 +32,50 @@ fragment UserItem on User {
createdAt
}

# user gists
query Gists($login: String!, $after: String) {
user(login: $login) {
gists(first: 30, after: $after) {
pageInfo {
...PageInfoParts
}
nodes {
name
description
files {
name
language {
name
}
text
}
updatedAt
id
owner {
avatarUrl
}
}
}
}
}

# single gist
query Gist($login: String!, $name: String!) {
user(login:$login) {
gist(name: $name) {
name
files {
name
language {
name
}
text
size
}
}
}
}

# users
query Followers($login: String!, $after: String) {
user(login: $login) {
Expand Down Expand Up @@ -1014,3 +1058,32 @@ query Issue($owner: String!, $name: String!, $number: Int!, $cursor: String) {
}
}
}

# Releases
query Releases($name: String!, $owner: String!, $cursor: String) {
repository(name: $name, owner: $owner) {
releases(first: 30, after: $cursor, orderBy: { field: CREATED_AT, direction:DESC }) {
pageInfo {
...PageInfoParts
}
nodes {
tagName
description
name
author {
name
avatarUrl
}
publishedAt
url
releaseAssets(first: 30) {
nodes {
name
downloadUrl
downloadCount
}
}
}
}
}
}
123 changes: 123 additions & 0 deletions lib/graphql/github.req.gql.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fba6e4c

Please sign in to comment.