feat: include issue comments in worker task context (#148)
This commit is contained in:
@@ -24,12 +24,19 @@ export type Issue = {
|
||||
web_url: string;
|
||||
};
|
||||
|
||||
export type IssueComment = {
|
||||
author: string;
|
||||
body: string;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export interface IssueProvider {
|
||||
ensureLabel(name: string, color: string): Promise<void>;
|
||||
ensureAllStateLabels(): Promise<void>;
|
||||
createIssue(title: string, description: string, label: StateLabel, assignees?: string[]): Promise<Issue>;
|
||||
listIssuesByLabel(label: StateLabel): Promise<Issue[]>;
|
||||
getIssue(issueId: number): Promise<Issue>;
|
||||
listComments(issueId: number): Promise<IssueComment[]>;
|
||||
transitionLabel(issueId: number, from: StateLabel, to: StateLabel): Promise<void>;
|
||||
closeIssue(issueId: number): Promise<void>;
|
||||
reopenIssue(issueId: number): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user