Skip to content

Commit f996d7b

Browse files
0xn3va0xn3va
and
0xn3va
authored
Fix the CollaboratorPermission GraphQL query (#301)
Co-authored-by: 0xn3va <0xn3va@local>
1 parent 05b97d6 commit f996d7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class GitHubHelper {
302302
// Returns 'READ', 'TRIAGE', 'WRITE', 'MAINTAIN', 'ADMIN'
303303
const query = `query CollaboratorPermission($owner: String!, $repo: String!, $collaborator: String) {
304304
repository(owner:$owner, name:$repo) {
305-
collaborators(query: $collaborator) {
305+
collaborators(login: $collaborator) {
306306
edges {
307307
permission
308308
}

src/github-helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class GitHubHelper {
6161
// Returns 'READ', 'TRIAGE', 'WRITE', 'MAINTAIN', 'ADMIN'
6262
const query = `query CollaboratorPermission($owner: String!, $repo: String!, $collaborator: String) {
6363
repository(owner:$owner, name:$repo) {
64-
collaborators(query: $collaborator) {
64+
collaborators(login: $collaborator) {
6565
edges {
6666
permission
6767
}

0 commit comments

Comments
 (0)