diff --git a/.changeset/selfish-dots-attend.md b/.changeset/selfish-dots-attend.md new file mode 100644 index 0000000000..d11d3003f1 --- /dev/null +++ b/.changeset/selfish-dots-attend.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-backend-module-gitlab': patch +--- + +Removed circular import diff --git a/plugins/scaffolder-backend-module-gitlab/src/util.ts b/plugins/scaffolder-backend-module-gitlab/src/util.ts index d897604956..db1468b180 100644 --- a/plugins/scaffolder-backend-module-gitlab/src/util.ts +++ b/plugins/scaffolder-backend-module-gitlab/src/util.ts @@ -22,7 +22,6 @@ import { import { Gitlab, GroupSchema } from '@gitbeaker/rest'; import { z } from 'zod'; import commonGitlabConfig from './commonGitlabConfig'; -import * as util from './util'; export const parseRepoHost = (repoUrl: string): string => { let parsed; @@ -138,10 +137,7 @@ export async function getTopLevelParentGroup( try { const topParentGroup = await client.Groups.show(groupId); if (topParentGroup.parent_id) { - return util.getTopLevelParentGroup( - client, - topParentGroup.parent_id as number, - ); + return getTopLevelParentGroup(client, topParentGroup.parent_id as number); } return topParentGroup as GroupSchema; } catch (error: any) {