Skip to content

Commit

Permalink
fix: change config path (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianhaoz95 authored Sep 16, 2020
1 parent 9961b08 commit 62331b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

> A GitHub App built with [Probot](https://github.com/probot/probot) that A app to group checks based on subprojects.
https://github.com/tianhaoz95/check-group-test

## Setup

```sh
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const CheckId = "Check Group";
export const ConfigPath = ".github/checkgroup.yml";
export const ConfigPath = "checkgroup.yml";
4 changes: 4 additions & 0 deletions src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
/* eslint-disable @typescript-eslint/no-unused-vars */
import { EventPayloads, WebhookEvent } from "@octokit/webhooks";
/* eslint-enable @typescript-eslint/no-unused-vars */
import { CheckId } from "./config";
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Context } from "probot";
/* eslint-enable @typescript-eslint/no-unused-vars */
Expand Down Expand Up @@ -43,6 +44,9 @@ export const checkRunEventHandler = async (
/* eslint-enable @typescript-eslint/no-explicit-any */
): Promise<void> => {
context.log.info("Check run event detected.");
if (context.payload["check_run"]["name"] == CheckId) {
return;
}
const pullRequests: PullRequestData[] = extractPullRequestsFromCheckRunContext(
context,
);
Expand Down

0 comments on commit 62331b3

Please sign in to comment.