"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServiceTrackedProjectKey = getServiceTrackedProjectKey;
exports.formatTrackedProjectLabel = formatTrackedProjectLabel;
const tracked_project_1 = require("../../core/tracked-project");
const provider_resolution_1 = require("../../platform/provider-resolution");
function getServiceTrackedProjectKey(project) {
    return (0, provider_resolution_1.getTrackedProjectKey)((0, tracked_project_1.toTrackedProjectRef)(project));
}
function formatTrackedProjectLabel(project) {
    return [
        `${project.repositoryHost.kind}:${project.repositoryHost.projectRef}`,
        `${project.ticketTracker.kind}:${project.ticketTracker.projectRef}`,
    ].join(" / ");
}
