"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateGithubToken = exports.isGithubToken = void 0;
const isGithubToken = (value) => !!value.match(/^(github_pat_|ghp_|ghs_)/);
exports.isGithubToken = isGithubToken;
const validateGithubToken = (value) => {
    if (!(0, exports.isGithubToken)(value)) {
        return [
            false,
            `GitHub token should start with "github_pat_" or "ghp_"`,
        ];
    }
    return [true, undefined];
};
exports.validateGithubToken = validateGithubToken;
//# sourceMappingURL=github.js.map