UNPKG

@atomist/github

Version:
48 lines (26 loc) 1.21 kB
import {Services} from '@atomist/rug/model/Core' export interface GitHubService extends Services { createIssue(title: string, comment: string, owner: string, repo: string, token: string): Status assignIssue(number: number, assignee: string, owner: string, repo: string, token: string): Status reopenIssue(number: number, owner: string, repo: string, token: string): Status closeIssue(number: number, owner: string, repo: string, token: string): Status labelIssue(number: number, label: string, owner: string, repo: string, token: string): Status commentIssue(number: number, comment: string, owner: string, repo: string, token: string): Status listIssues(days: number, token: string): Issue[] listIssues(search: string, owner: string, repo: string, token: string): Issue[] mergePullRequest(number: number, owner: string, repo: string, token: string): Status createRelease(tagName: string, owner: string, repo: string, token: string): Status } export interface Status { success(): boolean message(): string } export interface Issue { number(): number title(): string url(): string issueUrl(): string repo(): string timestamp(): number state(): string }