Skip to content

Commit

Permalink
feat: support automerge lock and queue
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Apr 14, 2019
1 parent 527e40e commit ed8eb2b
Show file tree
Hide file tree
Showing 15 changed files with 438 additions and 147 deletions.
4 changes: 4 additions & 0 deletions dist/context/repoContext.d.ts
Expand Up @@ -10,6 +10,10 @@ interface RepoContextWithoutTeamContext<GroupNames extends string> {
hasApprovesReview: (labels: LabelResponse[]) => boolean;
getNeedsReviewGroupNames: (labels: LabelResponse[]) => GroupNames[];
lockPROrPRS(prIdOrIds: string | string[], callback: () => Promise<void> | void): Promise<void>;
getMergeLocked(): number | undefined;
addMergeLock(prId: number): void;
removeMergeLocked(context: Context<any>, prId: number): void;
pushAutomergeQueue(prId: number): void;
}
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;
Expand Down
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.

202 changes: 142 additions & 60 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 ed8eb2b

Please sign in to comment.