Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve reviewflow error status
- Loading branch information
1 parent
f8d1eec
commit 7ff2078
Showing
15 changed files
with
345 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.