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