function tryGetOwnerFromContext()

in github-projects/map-labels/index.js [124:133]


function tryGetOwnerFromContext() {
    const DEFAULT_OWNER_ORG = 'elastic';
    try {
        // Might throw if the context is not available
        return github_1.context.repo.owner;
    }
    catch (error) {
        return DEFAULT_OWNER_ORG;
    }
}