UNPKG

734 BTypeScriptView Raw
1import { ProjectOperationCredentials } from "@atomist/automation-client/lib/operations/common/ProjectOperationCredentials";
2import { RemoteRepoRef } from "@atomist/automation-client/lib/operations/common/RepoId";
3import { Issue } from "@atomist/automation-client/lib/util/gitHub";
4/**
5 * Implemented by types that can raise issues
6 */
7export interface IssueRouter {
8 /**
9 * Raise an issue with the given routing strategy.
10 * @param {ProjectOperationCredentials} credentials
11 * @param {RemoteRepoRef} id
12 * @param {Issue} issue
13 * @return {Promise<void>}
14 */
15 raiseIssue(credentials: ProjectOperationCredentials, id: RemoteRepoRef, issue: Issue): Promise<void>;
16}
17//# sourceMappingURL=IssueRouter.d.ts.map
\No newline at end of file