async checkRerunCircleCI()

in functions/src/plugins/rerun-circleci.ts [29:41]


  async checkRerunCircleCI(context: Context): Promise<void> {
    const config = await this.getConfig(context);
    if (config.disabled) {
      return;
    }

    if (context.payload.label) {
      const label: Github.IssuesGetLabelResponse = context.payload.label;
      if (label.name === config.triggerRerunLabel) {
        await this.triggerCircleCIRerun(context);
      }
    }
  }