From a3d4ee1033330e25738a208a536c463cfb9e2180 Mon Sep 17 00:00:00 2001 From: Polina Semenova Date: Wed, 28 Aug 2024 17:33:09 +0200 Subject: [PATCH] add team labels sync for more projects --- .../sync_team_label_with_project/index.ts | 17 ++++++++- src/shared/project_ids.ts | 38 +++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/src/modules/sync_team_label_with_project/index.ts b/src/modules/sync_team_label_with_project/index.ts index 5c56ec8..e51c22c 100644 --- a/src/modules/sync_team_label_with_project/index.ts +++ b/src/modules/sync_team_label_with_project/index.ts @@ -1,4 +1,12 @@ -import {DBAAS, IDENTITY} from "../../shared/project_ids"; +import { + AI_EXPERIMENTS, AZURE, + BAAS, + BILLING, + DBAAS, + GROWTH, + IDENTITY, QA, + WORKFLOW +} from "../../shared/project_ids"; import {Probot} from "probot"; import {logger} from "../../shared/logger"; import {isDryRun} from "../../shared/utils"; @@ -23,6 +31,13 @@ import {Issue} from "../../shared/issue"; const PROJECTS_TO_LABELS_MAP = { [DBAAS.projectId]: DBAAS.teamLabelName, [IDENTITY.projectId]: IDENTITY.teamLabelName, + [BILLING.projectId]: BILLING.teamLabelName, + [WORKFLOW.projectId]: WORKFLOW.teamLabelName, + [GROWTH.projectId]: GROWTH.teamLabelName, + [BAAS.projectId]: BAAS.teamLabelName, + [AI_EXPERIMENTS.projectId]: AI_EXPERIMENTS.teamLabelName, + [QA.projectId]: QA.teamLabelName, + [AZURE.projectId]: AZURE.teamLabelName, } export const sync_team_label_with_project = (app: Probot) => { diff --git a/src/shared/project_ids.ts b/src/shared/project_ids.ts index cfd62ef..072f46d 100644 --- a/src/shared/project_ids.ts +++ b/src/shared/project_ids.ts @@ -137,5 +137,43 @@ export const DBAAS = { export const WORKFLOW = { projectId: 'PVT_kwDOBKF3Cs4Ak7Jm', trackedInFieldId: 'PVTF_lADOBKF3Cs4Ak7JmzgdDpF0', + teamLabelName: 'team/workflow', } +// project id: 93 +export const BILLING = { + projectId: 'PVT_kwDOBKF3Cs4Ak7J2', + teamLabelName: 'team/billing 💰' +} + +// project id: 85 +export const GROWTH = { + projectId: 'PVT_kwDOBKF3Cs4AkUgD', + teamLabelName: 'team/growth' +} + +// project id: 88 +export const BAAS = { + projectId: 'PVT_kwDOBKF3Cs4Ak7JT', + teamLabelName: 'team/baas' +} + +// project id: 91 +export const AI_EXPERIMENTS = { + projectId: 'PVT_kwDOBKF3Cs4Ak7Jy', + teamLabelName: 'team/ai' +} + +// project id: 98 +export const QA = { + projectId: 'PVT_kwDOBKF3Cs4Al5CB', + teamLabelName: 'team/qa' +} + +// project id: 90 +export const AZURE = { + projectId: 'PVT_kwDOBKF3Cs4Ak7Jt', + teamLabelName: 'team/azure' +} + +