Skip to content

Commit

Permalink
Fix the CollaboratorPermission GraphQL query (#301)
Browse files Browse the repository at this point in the history
Co-authored-by: 0xn3va <0xn3va@local>
  • Loading branch information
0xn3va and 0xn3va authored Dec 10, 2023
1 parent 05b97d6 commit f996d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class GitHubHelper {
// Returns 'READ', 'TRIAGE', 'WRITE', 'MAINTAIN', 'ADMIN'
const query = `query CollaboratorPermission($owner: String!, $repo: String!, $collaborator: String) {
repository(owner:$owner, name:$repo) {
collaborators(query: $collaborator) {
collaborators(login: $collaborator) {
edges {
permission
}
Expand Down
2 changes: 1 addition & 1 deletion src/github-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class GitHubHelper {
// Returns 'READ', 'TRIAGE', 'WRITE', 'MAINTAIN', 'ADMIN'
const query = `query CollaboratorPermission($owner: String!, $repo: String!, $collaborator: String) {
repository(owner:$owner, name:$repo) {
collaborators(query: $collaborator) {
collaborators(login: $collaborator) {
edges {
permission
}
Expand Down

0 comments on commit f996d7b

Please sign in to comment.