UNPKG

bitbucket-server-utils-cli

Version:

[![NPM](https://img.shields.io/npm/v/bitbucket-server-utils-cli.svg?style=flat-square)](https://www.npmjs.com/package/bitbucket-server-utils-cli)

15 lines (14 loc) 969 B
import { BitbucketServer, Repository, Branch, RepositorySlug, Commit, PullRequest, PullRequestComment, PullRequestCommentId } from './Model'; export default class BitbucketService { private settings; private config; constructor(settings: BitbucketServer); getRepositories(projects: string[]): Promise<Repository[]>; getBranches(repo: RepositorySlug): Promise<Branch[]>; getPullRequests(repo: RepositorySlug): Promise<PullRequest[]>; getCommit(repo: RepositorySlug, commit: string): Promise<Commit>; findCommentsByCommentKey(repo: RepositorySlug, pullRequest: string, commentKey: string): Promise<PullRequestCommentId[]>; deletePullRequestCommentById(repo: RepositorySlug, pullRequest: string, comment: PullRequestCommentId): Promise<void>; deletePullRequestCommentByCommentKey(repo: RepositorySlug, pullRequest: string, commentKey: string): Promise<void>; postPullRequestComment(config: PullRequestComment): Promise<void>; }