function tryGetOwnerFromContext()

in github-projects/map-labels/index.ts [124:132]


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