Adjustments ts after review
Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
This commit is contained in:
@@ -32,7 +32,7 @@ export const createGitlabProjectAccessTokenAction: (options: {
|
||||
} & {
|
||||
projectId: string | number;
|
||||
name?: string | undefined;
|
||||
accessLevel?: string | undefined;
|
||||
accessLevel?: number | undefined;
|
||||
scopes?: string[] | undefined;
|
||||
},
|
||||
{
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ export const createGitlabGroupEnsureExistsAction = (options: {
|
||||
const fullPath = `${currentPath}/${pathElement}`;
|
||||
const result = (await api.Groups.search(
|
||||
fullPath,
|
||||
)) as any as Array<GroupSchema>;
|
||||
)) as any as Array<GroupSchema>; // recast since the return type for search is wrong in the gitbeaker typings
|
||||
const subGroup = result.find(
|
||||
searchPathElem => searchPathElem.full_path === fullPath,
|
||||
);
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ export const createGitlabProjectAccessTokenAction = (options: {
|
||||
}),
|
||||
name: z.string({ description: 'Deploy Token Name' }).optional(),
|
||||
accessLevel: z
|
||||
.string({ description: 'Access Level of the Token' })
|
||||
.number({ description: 'Access Level of the Token' })
|
||||
.optional(),
|
||||
scopes: z.array(z.string(), { description: 'Scopes' }).optional(),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user