Skip to content

Commit

Permalink
feat: improve reviewflow error status
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Apr 3, 2019
1 parent f8d1eec commit 7ff2078
Show file tree
Hide file tree
Showing 15 changed files with 345 additions and 170 deletions.
6 changes: 4 additions & 2 deletions dist/context/initRepoLabels.d.ts
Expand Up @@ -8,6 +8,8 @@ export interface LabelResponse {
color: string;
default: boolean;
}
export declare type Labels = Record<string, LabelResponse>;
export declare const initRepoLabels: (context: Context<any>, config: import("../teamconfigs/types").Config<any>) => Promise<Record<string, LabelResponse>>;
export interface Labels {
[key: string]: LabelResponse;
}
export declare const initRepoLabels: <GroupNames extends string>(context: Context<any>, config: import("../teamconfigs/types").Config<GroupNames>) => Promise<Labels>;
//# sourceMappingURL=initRepoLabels.d.ts.map
2 changes: 1 addition & 1 deletion dist/context/initRepoLabels.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions dist/context/repoContext.d.ts
@@ -1,14 +1,16 @@
import { Context } from 'probot';
import { LabelResponse, Labels } from './initRepoLabels';
import { TeamContext } from './teamContext';
interface RepoContextWithoutTeamContext {
interface RepoContextWithoutTeamContext<GroupNames extends string> {
labels: Labels;
hasNeedsReview: (labels: LabelResponse[]) => boolean;
hasRequestedReview: (labels: LabelResponse[]) => boolean;
hasChangesRequestedReview: (labels: LabelResponse[]) => boolean;
hasApprovesReview: (labels: LabelResponse[]) => boolean;
getNeedsReviewGroupNames: (labels: LabelResponse[]) => GroupNames[];
lockPROrPRS(prIdOrIds: string | string[], callback: () => Promise<void> | void): Promise<void>;
}
export declare type RepoContext<GroupNames extends string = any> = TeamContext<GroupNames> & RepoContextWithoutTeamContext;
export declare type RepoContext<GroupNames extends string = any> = TeamContext<GroupNames> & RepoContextWithoutTeamContext<GroupNames>;
export declare const obtainRepoContext: (context: Context<any>) => RepoContext<any> | Promise<RepoContext<any>> | null;
export {};
//# sourceMappingURL=repoContext.d.ts.map
2 changes: 1 addition & 1 deletion dist/context/repoContext.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140 changes: 93 additions & 47 deletions dist/index-node10-dev.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index-node10-dev.cjs.js.map

Large diffs are not rendered by default.

0 comments on commit 7ff2078

Please sign in to comment.