Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit facbac2

Browse files
committedJan 21, 2025·
fix issues
1 parent 1ea90e6 commit facbac2

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed
 

‎backend/src/serverless/integrations/usecases/github/rest/getInstalledRepositories.ts

-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ import axios, { AxiosRequestConfig } from 'axios'
22

33
import { getServiceChildLogger } from '@crowd/logging'
44

5-
import { GITHUB_CONFIG } from '../../../../../conf'
65
import { Repos } from '../../../types/regularTypes'
76

8-
const IS_GITHUB_COMMIT_DATA_ENABLED = GITHUB_CONFIG.isCommitDataEnabled === 'true'
9-
107
const log = getServiceChildLogger('getInstalledRepositories')
118

129
const getRepositoriesFromGH = async (page: number, installToken: string): Promise<any> => {

‎backend/src/serverless/integrations/usecases/github/rest/getRemoteStats.ts

-4
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ const getStatsForRepo = async (repoUrl: string, token: string): Promise<GitHubSt
5050
}
5151
}`
5252

53-
console.log('query', query)
54-
5553
const result = await axios.post(
5654
'https://api.github.com/graphql',
5755
{
@@ -64,8 +62,6 @@ const getStatsForRepo = async (repoUrl: string, token: string): Promise<GitHubSt
6462
},
6563
)
6664

67-
console.log('result', result.data.data.repository)
68-
6965
const prsAll = await axios.get(
7066
`https://api.github.com/repos/${owner}/${repo}/pulls?state=all&per_page=1`,
7167
{

‎frontend/src/config/integrations/github-archive/components/github-connect.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
</template>
2929

3030
<script setup lang="ts">
31-
import { ref, computed } from 'vue';
31+
import { ref } from 'vue';
3232
import LfButton from '@/ui-kit/button/Button.vue';
3333
import LfIcon from '@/ui-kit/icon/Icon.vue';
3434
import LfGithubSettingsDrawer from '@/config/integrations/github-archive/components/settings/github-settings-drawer.vue';
35-
import { isTeamUser } from '@/config/permissions';
36-
import { useAuthStore } from '@/modules/auth/store/auth.store';
37-
import { storeToRefs } from 'pinia';
35+
// import { isTeamUser } from '@/config/permissions';
36+
// import { useAuthStore } from '@/modules/auth/store/auth.store';
37+
// import { storeToRefs } from 'pinia';
3838
3939
const props = defineProps<{
4040
integration: any,

‎frontend/src/config/integrations/github-archive/services/github.api.service.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import authAxios from '@/shared/axios/auth-axios';
2-
import { AuthService } from '@/modules/auth/services/auth.service';
32
import { GitHubOrganization, GitHubRepository } from '@/config/integrations/github-archive/types/GithubSettings';
43

54
export class GithubApiService {

‎services/libs/integrations/src/integrations/github-snowflake/processStream.ts

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const initClient = (ctx: IProcessStreamContext) => {
3434
database: settings.sfDatabase,
3535
warehouse: settings.sfWarehouse,
3636
role: settings.sfRole,
37+
parentLog: ctx.log,
3738
})
3839
gh = new GithubSnowflakeClient(sf)
3940
}
@@ -47,6 +48,7 @@ const initIncrementalClient = (ctx: IProcessStreamContext) => {
4748
database: settings.sfDatabase,
4849
warehouse: settings.sfIncrementalWarehouse,
4950
role: settings.sfRole,
51+
parentLog: ctx.log,
5052
})
5153
ghIncremental = new GithubSnowflakeClient(sfIncremental)
5254
}

0 commit comments

Comments
 (0)
Please sign in to comment.