"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tagsToRecord = exports.createSourceURL = void 0;
const url_1 = require("../../../util/github/url");
function createSourceURL({ type, repository, }) {
    switch (type) {
        case 'github':
            return (0, url_1.getSourceUrl)(repository);
        default:
            return undefined;
    }
}
exports.createSourceURL = createSourceURL;
function tagsToRecord(tags) {
    const record = {};
    for (const { kind, value } of tags) {
        record[kind] = value;
    }
    return record;
}
exports.tagsToRecord = tagsToRecord;
//# sourceMappingURL=utils.js.map