mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 03:32:52 +00:00
refactor: adjust code to updated dependencies
This commit is contained in:
@@ -241,7 +241,7 @@ export async function tidyProtectedBranches(api: Api, projects: Project[]): Prom
|
||||
export async function tidyProtectedTags(api: Api, projects: Project[]): Promise<void> {
|
||||
await asyncPool(CONCURRENCY, projects, async (project) => {
|
||||
// TODO: move this to GitLab API
|
||||
const protectedTags: Array<{
|
||||
const protectedTags = await api.makeGitLabAPIRequest(`projects/${project.id}/protected_tags`) as Array<{
|
||||
/**
|
||||
* List of access levels to create a tag
|
||||
*/
|
||||
@@ -259,7 +259,7 @@ export async function tidyProtectedTags(api: Api, projects: Project[]): Promise<
|
||||
* Name of the tag
|
||||
*/
|
||||
name: string;
|
||||
}> = await api.makeGitLabAPIRequest(`projects/${project.id}/protected_tags`);
|
||||
}>;
|
||||
|
||||
if (protectedTags.findIndex((protectedTag) => {
|
||||
return protectedTag.name === 'v*';
|
||||
|
||||
Reference in New Issue
Block a user