Skip to content

Commit 503d8f1

Browse files
authored
feat: minPermissionLevel filter for projects connections (#969)
1 parent ee111b5 commit 503d8f1

File tree

3 files changed

+170
-0
lines changed

3 files changed

+170
-0
lines changed

schema.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9379,6 +9379,7 @@ export type IssueProjectsV2Args = {
93799379
before?: InputMaybe<Scalars['String']['input']>;
93809380
first?: InputMaybe<Scalars['Int']['input']>;
93819381
last?: InputMaybe<Scalars['Int']['input']>;
9382+
minPermissionLevel?: InputMaybe<ProjectV2PermissionLevel>;
93829383
orderBy?: InputMaybe<ProjectV2Order>;
93839384
query?: InputMaybe<Scalars['String']['input']>;
93849385
};
@@ -15364,6 +15365,7 @@ export type OrganizationProjectsV2Args = {
1536415365
before?: InputMaybe<Scalars['String']['input']>;
1536515366
first?: InputMaybe<Scalars['Int']['input']>;
1536615367
last?: InputMaybe<Scalars['Int']['input']>;
15368+
minPermissionLevel?: InputMaybe<ProjectV2PermissionLevel>;
1536715369
orderBy?: InputMaybe<ProjectV2Order>;
1536815370
query?: InputMaybe<Scalars['String']['input']>;
1536915371
};
@@ -17856,10 +17858,20 @@ export type ProjectV2OwnerProjectsV2Args = {
1785617858
before?: InputMaybe<Scalars['String']['input']>;
1785717859
first?: InputMaybe<Scalars['Int']['input']>;
1785817860
last?: InputMaybe<Scalars['Int']['input']>;
17861+
minPermissionLevel?: InputMaybe<ProjectV2PermissionLevel>;
1785917862
orderBy?: InputMaybe<ProjectV2Order>;
1786017863
query?: InputMaybe<Scalars['String']['input']>;
1786117864
};
1786217865

17866+
/** The possible roles of a collaborator on a project. */
17867+
export type ProjectV2PermissionLevel =
17868+
/** The collaborator can view, edit, and maange the settings of the project */
17869+
| 'ADMIN'
17870+
/** The collaborator can view the project */
17871+
| 'READ'
17872+
/** The collaborator can view and edit the project */
17873+
| 'WRITE';
17874+
1786317875
/** Recent projects for the owner. */
1786417876
export type ProjectV2Recent = {
1786517877
/** Recent projects that this user has modified in the context of the owner. */
@@ -18784,6 +18796,7 @@ export type PullRequestProjectsV2Args = {
1878418796
before?: InputMaybe<Scalars['String']['input']>;
1878518797
first?: InputMaybe<Scalars['Int']['input']>;
1878618798
last?: InputMaybe<Scalars['Int']['input']>;
18799+
minPermissionLevel?: InputMaybe<ProjectV2PermissionLevel>;
1878718800
orderBy?: InputMaybe<ProjectV2Order>;
1878818801
query?: InputMaybe<Scalars['String']['input']>;
1878918802
};
@@ -22717,6 +22730,7 @@ export type RepositoryProjectsV2Args = {
2271722730
before?: InputMaybe<Scalars['String']['input']>;
2271822731
first?: InputMaybe<Scalars['Int']['input']>;
2271922732
last?: InputMaybe<Scalars['Int']['input']>;
22733+
minPermissionLevel?: InputMaybe<ProjectV2PermissionLevel>;
2272022734
orderBy?: InputMaybe<ProjectV2Order>;
2272122735
query?: InputMaybe<Scalars['String']['input']>;
2272222736
};
@@ -27073,6 +27087,7 @@ export type TeamProjectsV2Args = {
2707327087
filterBy?: InputMaybe<ProjectV2Filters>;
2707427088
first?: InputMaybe<Scalars['Int']['input']>;
2707527089
last?: InputMaybe<Scalars['Int']['input']>;
27090+
minPermissionLevel?: InputMaybe<ProjectV2PermissionLevel>;
2707627091
orderBy?: InputMaybe<ProjectV2Order>;
2707727092
query?: InputMaybe<Scalars['String']['input']>;
2707827093
};
@@ -30445,6 +30460,7 @@ export type UserProjectsV2Args = {
3044530460
before?: InputMaybe<Scalars['String']['input']>;
3044630461
first?: InputMaybe<Scalars['Int']['input']>;
3044730462
last?: InputMaybe<Scalars['Int']['input']>;
30463+
minPermissionLevel?: InputMaybe<ProjectV2PermissionLevel>;
3044830464
orderBy?: InputMaybe<ProjectV2Order>;
3044930465
query?: InputMaybe<Scalars['String']['input']>;
3045030466
};

schema.graphql

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18226,6 +18226,11 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
1822618226
"""
1822718227
last: Int
1822818228

18229+
"""
18230+
Filter projects based on user role.
18231+
"""
18232+
minPermissionLevel: ProjectV2PermissionLevel = READ
18233+
1822918234
"""
1823018235
How to order the returned projects.
1823118236
"""
@@ -29293,6 +29298,11 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
2929329298
"""
2929429299
last: Int
2929529300

29301+
"""
29302+
Filter projects based on user role.
29303+
"""
29304+
minPermissionLevel: ProjectV2PermissionLevel = READ
29305+
2929629306
"""
2929729307
How to order the returned projects.
2929829308
"""
@@ -34779,6 +34789,11 @@ interface ProjectV2Owner {
3477934789
"""
3478034790
last: Int
3478134791

34792+
"""
34793+
Filter projects based on user role.
34794+
"""
34795+
minPermissionLevel: ProjectV2PermissionLevel = READ
34796+
3478234797
"""
3478334798
How to order the returned projects.
3478434799
"""
@@ -34791,6 +34806,26 @@ interface ProjectV2Owner {
3479134806
): ProjectV2Connection!
3479234807
}
3479334808

34809+
"""
34810+
The possible roles of a collaborator on a project.
34811+
"""
34812+
enum ProjectV2PermissionLevel {
34813+
"""
34814+
The collaborator can view, edit, and maange the settings of the project
34815+
"""
34816+
ADMIN
34817+
34818+
"""
34819+
The collaborator can view the project
34820+
"""
34821+
READ
34822+
34823+
"""
34824+
The collaborator can view and edit the project
34825+
"""
34826+
WRITE
34827+
}
34828+
3479434829
"""
3479534830
Recent projects for the owner.
3479634831
"""
@@ -36545,6 +36580,11 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
3654536580
"""
3654636581
last: Int
3654736582

36583+
"""
36584+
Filter projects based on user role.
36585+
"""
36586+
minPermissionLevel: ProjectV2PermissionLevel = READ
36587+
3654836588
"""
3654936589
How to order the returned projects.
3655036590
"""
@@ -45139,6 +45179,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
4513945179
"""
4514045180
last: Int
4514145181

45182+
"""
45183+
Filter projects based on user role.
45184+
"""
45185+
minPermissionLevel: ProjectV2PermissionLevel = READ
45186+
4514245187
"""
4514345188
How to order the returned projects.
4514445189
"""
@@ -54274,6 +54319,11 @@ type Team implements MemberStatusable & Node & Subscribable {
5427454319
"""
5427554320
last: Int
5427654321

54322+
"""
54323+
Filter projects based on user role.
54324+
"""
54325+
minPermissionLevel: ProjectV2PermissionLevel = READ
54326+
5427754327
"""
5427854328
How to order the returned projects.
5427954329
"""
@@ -60969,6 +61019,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
6096961019
"""
6097061020
last: Int
6097161021

61022+
"""
61023+
Filter projects based on user role.
61024+
"""
61025+
minPermissionLevel: ProjectV2PermissionLevel = READ
61026+
6097261027
"""
6097361028
How to order the returned projects.
6097461029
"""

schema.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45949,6 +45949,16 @@
4594945949
},
4595045950
"defaultValue": "{field: NUMBER, direction: DESC}"
4595145951
},
45952+
{
45953+
"name": "minPermissionLevel",
45954+
"description": "Filter projects based on user role.",
45955+
"type": {
45956+
"kind": "ENUM",
45957+
"name": "ProjectV2PermissionLevel",
45958+
"ofType": null
45959+
},
45960+
"defaultValue": "READ"
45961+
},
4595245962
{
4595345963
"name": "after",
4595445964
"description": "Returns the elements in the list that come after the specified cursor.",
@@ -75879,6 +75889,16 @@
7587975889
},
7588075890
"defaultValue": "{field: NUMBER, direction: DESC}"
7588175891
},
75892+
{
75893+
"name": "minPermissionLevel",
75894+
"description": "Filter projects based on user role.",
75895+
"type": {
75896+
"kind": "ENUM",
75897+
"name": "ProjectV2PermissionLevel",
75898+
"ofType": null
75899+
},
75900+
"defaultValue": "READ"
75901+
},
7588275902
{
7588375903
"name": "after",
7588475904
"description": "Returns the elements in the list that come after the specified cursor.",
@@ -90477,6 +90497,16 @@
9047790497
},
9047890498
"defaultValue": "{field: NUMBER, direction: DESC}"
9047990499
},
90500+
{
90501+
"name": "minPermissionLevel",
90502+
"description": "Filter projects based on user role.",
90503+
"type": {
90504+
"kind": "ENUM",
90505+
"name": "ProjectV2PermissionLevel",
90506+
"ofType": null
90507+
},
90508+
"defaultValue": "READ"
90509+
},
9048090510
{
9048190511
"name": "after",
9048290512
"description": "Returns the elements in the list that come after the specified cursor.",
@@ -90557,6 +90587,35 @@
9055790587
}
9055890588
]
9055990589
},
90590+
{
90591+
"kind": "ENUM",
90592+
"name": "ProjectV2PermissionLevel",
90593+
"description": "The possible roles of a collaborator on a project.",
90594+
"fields": null,
90595+
"inputFields": null,
90596+
"interfaces": null,
90597+
"enumValues": [
90598+
{
90599+
"name": "READ",
90600+
"description": "The collaborator can view the project",
90601+
"isDeprecated": false,
90602+
"deprecationReason": null
90603+
},
90604+
{
90605+
"name": "WRITE",
90606+
"description": "The collaborator can view and edit the project",
90607+
"isDeprecated": false,
90608+
"deprecationReason": null
90609+
},
90610+
{
90611+
"name": "ADMIN",
90612+
"description": "The collaborator can view, edit, and maange the settings of the project",
90613+
"isDeprecated": false,
90614+
"deprecationReason": null
90615+
}
90616+
],
90617+
"possibleTypes": null
90618+
},
9056090619
{
9056190620
"kind": "INTERFACE",
9056290621
"name": "ProjectV2Recent",
@@ -94871,6 +94930,16 @@
9487194930
},
9487294931
"defaultValue": "{field: NUMBER, direction: DESC}"
9487394932
},
94933+
{
94934+
"name": "minPermissionLevel",
94935+
"description": "Filter projects based on user role.",
94936+
"type": {
94937+
"kind": "ENUM",
94938+
"name": "ProjectV2PermissionLevel",
94939+
"ofType": null
94940+
},
94941+
"defaultValue": "READ"
94942+
},
9487494943
{
9487594944
"name": "after",
9487694945
"description": "Returns the elements in the list that come after the specified cursor.",
@@ -117387,6 +117456,16 @@
117387117456
"ofType": null
117388117457
},
117389117458
"defaultValue": "{field: NUMBER, direction: DESC}"
117459+
},
117460+
{
117461+
"name": "minPermissionLevel",
117462+
"description": "Filter projects based on user role.",
117463+
"type": {
117464+
"kind": "ENUM",
117465+
"name": "ProjectV2PermissionLevel",
117466+
"ofType": null
117467+
},
117468+
"defaultValue": "READ"
117390117469
}
117391117470
],
117392117471
"type": {
@@ -138945,6 +139024,16 @@
138945139024
"ofType": null
138946139025
},
138947139026
"defaultValue": "\"\""
139027+
},
139028+
{
139029+
"name": "minPermissionLevel",
139030+
"description": "Filter projects based on user role.",
139031+
"type": {
139032+
"kind": "ENUM",
139033+
"name": "ProjectV2PermissionLevel",
139034+
"ofType": null
139035+
},
139036+
"defaultValue": "READ"
138948139037
}
138949139038
],
138950139039
"type": {
@@ -155859,6 +155948,16 @@
155859155948
},
155860155949
"defaultValue": "{field: NUMBER, direction: DESC}"
155861155950
},
155951+
{
155952+
"name": "minPermissionLevel",
155953+
"description": "Filter projects based on user role.",
155954+
"type": {
155955+
"kind": "ENUM",
155956+
"name": "ProjectV2PermissionLevel",
155957+
"ofType": null
155958+
},
155959+
"defaultValue": "READ"
155960+
},
155862155961
{
155863155962
"name": "after",
155864155963
"description": "Returns the elements in the list that come after the specified cursor.",

0 commit comments

Comments
 (0)