function verifyExpectedArgs()

in github-projects/map-labels/index.js [109:123]


function verifyExpectedArgs(args) {
    var _a;
    if (!args.owner) {
        throw new Error('Owner from context or args cannot be inferred, but is required');
    }
    if (!args.projectNumber) {
        throw new Error('Project number is required for a single issue update');
    }
    if (!args.githubToken) {
        throw new Error('GitHub token is required for authentication');
    }
    if (((_a = args.issueNumber) === null || _a === void 0 ? void 0 : _a.length) && args.all) {
        throw new Error('Either "issueNumber" or "all" should be specified at once');
    }
}