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)

67 lines (66 loc) 1.46 kB
export interface BitbucketServer { personalAccessToken: string; username: string; password: string; url: string; sleepTime: number; dryRun: boolean; } export interface RepositorySlug { projectSlug: string; repoSlug: string; } export interface Repository { slug: RepositorySlug; cloneUrl: string; id: string; state: string; } export interface Branch { displayId: string; latestCommit: string; } export interface Ref { displayId: string; latestCommit: string; } export interface PullRequest { id: string; repository: RepositorySlug; title: string; state: 'OPEN' | 'DECLINED' | 'MERGED'; author: User; reviewers: Reviewer[]; createdDate: string; updatedDate: string; fromRef: Ref; } export interface Reviewer { role: 'REVIEWER' | 'AUTHOR' | 'PARTICIPANT'; status: 'UNAPPROVED' | 'NEEDS_WORK' | 'APPROVED' | undefined; user: User; } export interface User { name: string; emailAddress: string; displayName: string; slug: string; } export interface Commit { displayId: string; authorTimestamp: string; committerTimestamp: string; author: User; } export interface PullRequestComment { repo: RepositorySlug; pullRequest: string; message: string; commentKey?: string; severity: 'NORMAL' | 'BLOCKER'; } export interface PullRequestCommentId { id: string; version?: string; text?: string; }