Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add team labels sync for more projects #57

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/modules/sync_team_label_with_project/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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) => {
Expand Down
38 changes: 38 additions & 0 deletions src/shared/project_ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}


Loading