Skip to content

Commit 6bb3ac2

Browse files
octokitbotgr2m
authored andcommittedAug 28, 2019
feat: User#topRepositories (#202)
1 parent 6062c37 commit 6bb3ac2

File tree

2 files changed

+197
-81
lines changed

2 files changed

+197
-81
lines changed
 

‎schema.graphql

+35
Original file line numberDiff line numberDiff line change
@@ -29488,6 +29488,41 @@ type User implements Actor & Node & ProfileOwner & ProjectOwner & RegistryPackag
2948829488
"""
2948929489
status: UserStatus
2949029490

29491+
"""
29492+
Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created
29493+
"""
29494+
topRepositories(
29495+
"""
29496+
Returns the elements in the list that come after the specified cursor.
29497+
"""
29498+
after: String
29499+
29500+
"""
29501+
Returns the elements in the list that come before the specified cursor.
29502+
"""
29503+
before: String
29504+
29505+
"""
29506+
Returns the first _n_ elements from the list.
29507+
"""
29508+
first: Int
29509+
29510+
"""
29511+
Returns the last _n_ elements from the list.
29512+
"""
29513+
last: Int
29514+
29515+
"""
29516+
Ordering options for repositories returned from the connection
29517+
"""
29518+
orderBy: RepositoryOrder!
29519+
29520+
"""
29521+
How far back in time to fetch contributed repositories
29522+
"""
29523+
since: DateTime
29524+
): RepositoryConnection!
29525+
2949129526
"""
2949229527
Identifies the date and time when the object was last updated.
2949329528
"""

‎schema.json

+162-81
Original file line numberDiff line numberDiff line change
@@ -4406,6 +4406,87 @@
44064406
"isDeprecated": false,
44074407
"deprecationReason": null
44084408
},
4409+
{
4410+
"name": "topRepositories",
4411+
"description": "Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created\n",
4412+
"args": [
4413+
{
4414+
"name": "after",
4415+
"description": "Returns the elements in the list that come after the specified cursor.",
4416+
"type": {
4417+
"kind": "SCALAR",
4418+
"name": "String",
4419+
"ofType": null
4420+
},
4421+
"defaultValue": null
4422+
},
4423+
{
4424+
"name": "before",
4425+
"description": "Returns the elements in the list that come before the specified cursor.",
4426+
"type": {
4427+
"kind": "SCALAR",
4428+
"name": "String",
4429+
"ofType": null
4430+
},
4431+
"defaultValue": null
4432+
},
4433+
{
4434+
"name": "first",
4435+
"description": "Returns the first _n_ elements from the list.",
4436+
"type": {
4437+
"kind": "SCALAR",
4438+
"name": "Int",
4439+
"ofType": null
4440+
},
4441+
"defaultValue": null
4442+
},
4443+
{
4444+
"name": "last",
4445+
"description": "Returns the last _n_ elements from the list.",
4446+
"type": {
4447+
"kind": "SCALAR",
4448+
"name": "Int",
4449+
"ofType": null
4450+
},
4451+
"defaultValue": null
4452+
},
4453+
{
4454+
"name": "orderBy",
4455+
"description": "Ordering options for repositories returned from the connection",
4456+
"type": {
4457+
"kind": "NON_NULL",
4458+
"name": null,
4459+
"ofType": {
4460+
"kind": "INPUT_OBJECT",
4461+
"name": "RepositoryOrder",
4462+
"ofType": null
4463+
}
4464+
},
4465+
"defaultValue": null
4466+
},
4467+
{
4468+
"name": "since",
4469+
"description": "How far back in time to fetch contributed repositories",
4470+
"type": {
4471+
"kind": "SCALAR",
4472+
"name": "DateTime",
4473+
"ofType": null
4474+
},
4475+
"defaultValue": null
4476+
}
4477+
],
4478+
"type": {
4479+
"kind": "NON_NULL",
4480+
"name": null,
4481+
"ofType": {
4482+
"kind": "OBJECT",
4483+
"name": "RepositoryConnection",
4484+
"ofType": null
4485+
}
4486+
},
4487+
"isDeprecated": false,
4488+
"deprecationReason": null
4489+
},
44094490
{
44104491
"name": "updatedAt",
44114492
"description": "Identifies the date and time when the object was last updated.",
@@ -66807,6 +66888,87 @@
6680766888
],
6680866889
"possibleTypes": null
6680966890
},
66891+
{
66892+
"kind": "OBJECT",
66893+
"name": "SponsorsListing",
66894+
"description": "A GitHub Sponsors listing.",
66895+
"fields": [
66896+
{
66897+
"name": "fullDescription",
66898+
"description": "The full description of the listing.",
66899+
"args": [],
66900+
"type": {
66901+
"kind": "NON_NULL",
66902+
"name": null,
66903+
"ofType": {
66904+
"kind": "SCALAR",
66905+
"name": "String",
66906+
"ofType": null
66907+
}
66908+
},
66909+
"isDeprecated": false,
66910+
"deprecationReason": null
66911+
},
66912+
{
66913+
"name": "id",
66914+
"description": null,
66915+
"args": [],
66916+
"type": {
66917+
"kind": "NON_NULL",
66918+
"name": null,
66919+
"ofType": {
66920+
"kind": "SCALAR",
66921+
"name": "ID",
66922+
"ofType": null
66923+
}
66924+
},
66925+
"isDeprecated": false,
66926+
"deprecationReason": null
66927+
},
66928+
{
66929+
"name": "shortDescription",
66930+
"description": "The short description of the listing.",
66931+
"args": [],
66932+
"type": {
66933+
"kind": "NON_NULL",
66934+
"name": null,
66935+
"ofType": {
66936+
"kind": "SCALAR",
66937+
"name": "String",
66938+
"ofType": null
66939+
}
66940+
},
66941+
"isDeprecated": false,
66942+
"deprecationReason": null
66943+
},
66944+
{
66945+
"name": "slug",
66946+
"description": "The short name of the listing.",
66947+
"args": [],
66948+
"type": {
66949+
"kind": "NON_NULL",
66950+
"name": null,
66951+
"ofType": {
66952+
"kind": "SCALAR",
66953+
"name": "String",
66954+
"ofType": null
66955+
}
66956+
},
66957+
"isDeprecated": false,
66958+
"deprecationReason": null
66959+
}
66960+
],
66961+
"inputFields": null,
66962+
"interfaces": [
66963+
{
66964+
"kind": "INTERFACE",
66965+
"name": "Node",
66966+
"ofType": null
66967+
}
66968+
],
66969+
"enumValues": null,
66970+
"possibleTypes": null
66971+
},
6681066972
{
6681166973
"kind": "OBJECT",
6681266974
"name": "SponsorshipConnection",
@@ -71740,87 +71902,6 @@
7174071902
],
7174171903
"possibleTypes": null
7174271904
},
71743-
{
71744-
"kind": "OBJECT",
71745-
"name": "SponsorsListing",
71746-
"description": "A GitHub Sponsors listing.",
71747-
"fields": [
71748-
{
71749-
"name": "fullDescription",
71750-
"description": "The full description of the listing.",
71751-
"args": [],
71752-
"type": {
71753-
"kind": "NON_NULL",
71754-
"name": null,
71755-
"ofType": {
71756-
"kind": "SCALAR",
71757-
"name": "String",
71758-
"ofType": null
71759-
}
71760-
},
71761-
"isDeprecated": false,
71762-
"deprecationReason": null
71763-
},
71764-
{
71765-
"name": "id",
71766-
"description": null,
71767-
"args": [],
71768-
"type": {
71769-
"kind": "NON_NULL",
71770-
"name": null,
71771-
"ofType": {
71772-
"kind": "SCALAR",
71773-
"name": "ID",
71774-
"ofType": null
71775-
}
71776-
},
71777-
"isDeprecated": false,
71778-
"deprecationReason": null
71779-
},
71780-
{
71781-
"name": "shortDescription",
71782-
"description": "The short description of the listing.",
71783-
"args": [],
71784-
"type": {
71785-
"kind": "NON_NULL",
71786-
"name": null,
71787-
"ofType": {
71788-
"kind": "SCALAR",
71789-
"name": "String",
71790-
"ofType": null
71791-
}
71792-
},
71793-
"isDeprecated": false,
71794-
"deprecationReason": null
71795-
},
71796-
{
71797-
"name": "slug",
71798-
"description": "The short name of the listing.",
71799-
"args": [],
71800-
"type": {
71801-
"kind": "NON_NULL",
71802-
"name": null,
71803-
"ofType": {
71804-
"kind": "SCALAR",
71805-
"name": "String",
71806-
"ofType": null
71807-
}
71808-
},
71809-
"isDeprecated": false,
71810-
"deprecationReason": null
71811-
}
71812-
],
71813-
"inputFields": null,
71814-
"interfaces": [
71815-
{
71816-
"kind": "INTERFACE",
71817-
"name": "Node",
71818-
"ofType": null
71819-
}
71820-
],
71821-
"enumValues": null,
71822-
"possibleTypes": null
71823-
},
7182471905
{
7182571906
"kind": "UNION",
7182671907
"name": "CollectionItemContent",

0 commit comments

Comments
 (0)
Please sign in to comment.