mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-04 04:22:50 +00:00
fix: fix regression with protected tags
This commit is contained in:
@@ -263,7 +263,7 @@ export async function tidyProtectedTags(api: Api, projects: Project[]): Promise<
|
||||
|
||||
if (protectedTags.findIndex((protectedTag) => {
|
||||
return protectedTag.name === 'v*';
|
||||
}) >= 0) {
|
||||
}) === -1) {
|
||||
await api.makeGitLabAPIRequest(`projects/${project.id}/protected_tags`, {
|
||||
data: {
|
||||
create_access_level: AccessLevel.Maintainer,
|
||||
@@ -374,10 +374,10 @@ export async function tidy(api: Api) {
|
||||
const projects = await getProjects(api, groups);
|
||||
|
||||
await Promise.all([
|
||||
tidyLabels(api, projects),
|
||||
tidyMilestones(api, projects),
|
||||
tidyProtectedBranches(api, projects),
|
||||
tidyProtectedTags(api, projects),
|
||||
await tidyLabels(api, projects),
|
||||
await tidyMilestones(api, projects),
|
||||
await tidyProtectedBranches(api, projects),
|
||||
await tidyProtectedTags(api, projects),
|
||||
]);
|
||||
|
||||
await tidyOpenIssuesWithoutMeetingLabel(api);
|
||||
|
||||
Reference in New Issue
Block a user