We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e131016 commit 0a9cd59Copy full SHA for 0a9cd59
server/utils/githubapi.js
@@ -11,6 +11,7 @@ const getRepoOwnerType = async ({ repoOwner }) => {
11
return REPO_OWNER_TYPES.ORGANIZATION;
12
}
13
} catch (e) {
14
+ console.log('getRepoOwnerType error', e);
15
const { response } = e;
16
17
if (response) {
@@ -27,7 +28,7 @@ const checkUserIsACollaborator = async ({
27
28
userName,
29
accessToken
30
}) => {
- if (!repoOwner && !projectName & !userName) {
31
+ if (!repoOwner && !projectName && !userName) {
32
throw Error("Repo name, project name and user name are required");
33
34
@@ -40,6 +41,8 @@ const checkUserIsACollaborator = async ({
40
41
42
return true;
43
44
+ console.log('checkUserIsACollaborator error', e);
45
+
46
return false;
47
48
};
0 commit comments