private matchLabel()

in functions/src/plugins/merge.ts [119:123]


  private matchLabel(label: string, labels: GithubGQL.Labels['nodes'], config: MergeConfig): boolean {
    return matchAny([label], config.checks.requiredLabels)
      || matchAny([label], config.checks.forbiddenLabels)
      || (getLabelsNames(labels).includes(config.mergeLabel) && matchAny([label], config.checks.requiredLabelsWhenMergeReady || []));
  }