Skip to content

Commit a29a353

Browse files
authored
Merge pull request #265 from greatestview/feat/collaborators-as-members
feat: allow collaborators as members
2 parents 3b6a0e2 + 6f0343f commit a29a353

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/githubHelper.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ export class GithubHelper {
113113
}).catch(err => {
114114
console.error(`Failed to fetch organization members: ${err}`);
115115
});
116+
} else {
117+
githubApi.repos.listCollaborators({
118+
owner: this.githubOwner,
119+
repo: this.githubRepo,
120+
}).then(collaborators => {
121+
for (let collaborator of collaborators.data) {
122+
this.members.add(collaborator.login);
123+
}
124+
}).catch(err => {
125+
console.error(`Failed to fetch repository collaborators: ${err}`);
126+
});
116127
}
117128
}
118129

0 commit comments

Comments
 (0)