feat(core): Validate commit content for project admin role (#15687)

Co-authored-by: Guillaume Jacquart <jacquart.guillaume@gmail.com>
This commit is contained in:
Andreas Fitzek
2025-06-03 11:33:01 +02:00
committed by GitHub
parent 7c806ff532
commit 9607908c04
10 changed files with 867 additions and 388 deletions

View File

@@ -26,6 +26,12 @@ export async function createTag(attributes: Partial<TagEntity> = {}, workflow?:
return tag;
}
export async function updateTag(tag: TagEntity, attributes: Partial<TagEntity>) {
const tagRepository = Container.get(TagRepository);
const updatedTag = tagRepository.merge(tag, attributes);
return await tagRepository.save(updatedTag);
}
export async function assignTagToWorkflow(tag: TagEntity, workflow: WorkflowEntity) {
const mappingRepository = Container.get(WorkflowTagMappingRepository);