GitRestClient class
VSS REST api에 대한 요청을 만드는 데 사용해야 하는 기본 클래스(파생)입니다.
- Extends
생성자
Git |
속성
RESOURCE_AREA_ID |
메서드
생성자 세부 정보
GitRestClient(IVssRestClientOptions)
속성 세부 정보
RESOURCE_AREA_ID
static RESOURCE_AREA_ID: string
속성 값
string
메서드 세부 정보
createAnnotatedTag(GitAnnotatedTag, string, string)
주석이 추가된 태그를 만듭니다.
function createAnnotatedTag(tagObject: GitAnnotatedTag, project: string, repositoryId: string): Promise<GitAnnotatedTag>
매개 변수
- tagObject
- GitAnnotatedTag
만들 태그의 세부 정보를 포함하는 개체입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID 또는 이름입니다.
반환
Promise<GitAnnotatedTag>
createAttachment(any, string, string, number, string)
끌어오기 요청에 새 파일을 첨부합니다.
function createAttachment(content: any, fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<Attachment>
매개 변수
- content
-
any
업로드할 콘텐츠
- fileName
-
string
파일의 이름입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<Attachment>
createCherryPick(GitAsyncRefOperationParameters, string, string)
Cherry는 끌어오기 요청에 연결된 특정 커밋 또는 커밋을 새 분기로 선택합니다.
function createCherryPick(cherryPickToCreate: GitAsyncRefOperationParameters, project: string, repositoryId: string): Promise<GitCherryPick>
매개 변수
- cherryPickToCreate
- GitAsyncRefOperationParameters
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID입니다.
반환
Promise<GitCherryPick>
createComment(Comment, string, number, number, string)
끌어오기 요청의 특정 스레드에 대한 주석을 만듭니다(스레드당 최대 500개의 주석을 만들 수 있습니다).
function createComment(comment: Comment, repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<Comment>
매개 변수
- comment
- Comment
만들 주석입니다. 주석은 최대 150,000자까지 가능합니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
원하는 주석이 있는 스레드의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<Comment>
createCommitStatus(GitStatus, string, string, string)
Git 커밋 상태를 만듭니다.
function createCommitStatus(gitCommitStatusToCreate: GitStatus, commitId: string, repositoryId: string, project?: string): Promise<GitStatus>
매개 변수
- gitCommitStatusToCreate
- GitStatus
만들 Git 커밋 상태 개체입니다.
- commitId
-
string
Git 커밋의 ID입니다.
- repositoryId
-
string
리포지토리의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitStatus>
createFavorite(GitRefFavorite, string)
ref 즐겨찾기를 만듭니다.
function createFavorite(favorite: GitRefFavorite, project: string): Promise<GitRefFavorite>
매개 변수
- favorite
- GitRefFavorite
만들 참조 즐겨찾기입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitRefFavorite>
createForkSyncRequest(GitForkSyncRequestParameters, string, string, boolean)
다른 리포지토리의 참조를 이 리포지토리에 페치할 것을 요청합니다. 두 개의 기존 포크를 동기화합니다. 포크를 만들려면 href="https://docs.microsoft.com/en-us/rest/api/vsts/git/repositories/create?view=azure-devops-rest-5.1"<참조하세요.> 리포지토리 엔드포인트</a>
function createForkSyncRequest(syncParams: GitForkSyncRequestParameters, repositoryNameOrId: string, project?: string, includeLinks?: boolean): Promise<GitForkSyncRequest>
매개 변수
- syncParams
- GitForkSyncRequestParameters
원본 리포지토리 및 ref 매핑.
- repositoryNameOrId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeLinks
-
boolean
링크를 포함하려면 True입니다.
반환
Promise<GitForkSyncRequest>
createImportRequest(GitImportRequest, string, string)
가져오기 요청을 만듭니다.
function createImportRequest(importRequest: GitImportRequest, project: string, repositoryId: string): Promise<GitImportRequest>
매개 변수
- importRequest
- GitImportRequest
만들 가져오기 요청입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
반환
Promise<GitImportRequest>
createLike(string, number, number, number, string)
메모에 좋아요를 추가합니다.
function createLike(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
주석이 포함된 스레드의 ID입니다.
- commentId
-
number
주석의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
createMergeRequest(GitMergeParameters, string, string, boolean)
git 병합 작업을 요청합니다. 현재는 2개의 커밋만 병합할 수 있습니다.
function createMergeRequest(mergeParameters: GitMergeParameters, project: string, repositoryNameOrId: string, includeLinks?: boolean): Promise<GitMerge>
매개 변수
- mergeParameters
- GitMergeParameters
부모는 commitIds 및 병합 커밋 혼란을 커밋합니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryNameOrId
-
string
리포지토리의 이름 또는 ID입니다.
- includeLinks
-
boolean
링크를 포함하려면 True입니다.
반환
Promise<GitMerge>
createPullRequest(GitPullRequest, string, string, boolean)
끌어오기 요청을 만듭니다.
function createPullRequest(gitPullRequestToCreate: GitPullRequest, repositoryId: string, project?: string, supportsIterations?: boolean): Promise<GitPullRequest>
매개 변수
- gitPullRequestToCreate
- GitPullRequest
만들 끌어오기 요청입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- supportsIterations
-
boolean
true이면 끌어오기 요청에 대한 후속 푸시를 개별적으로 검토할 수 있습니다. 이 기능이 필요하지 않은 경우 성능상의 이유로 큰 끌어오기 요청에 대해 이 설정을 false로 설정합니다.
반환
Promise<GitPullRequest>
createPullRequestIterationStatus(GitPullRequestStatus, string, number, number, string)
반복에서 끌어오기 요청 상태를 만듭니다. 이 작업은 요청 본문에 지정된 반복 ID를 사용하여 끌어오기 요청의 만들기 상태와 동일한 결과를 갖습니다.
function createPullRequestIterationStatus(status: GitPullRequestStatus, repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<GitPullRequestStatus>
매개 변수
- status
- GitPullRequestStatus
만들 끌어오기 요청 상태입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- iterationId
-
number
끌어오기 요청 반복의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestStatus>
createPullRequestLabel(WebApiCreateTagRequestData, string, number, string, string)
태그를 만들고(아직 존재하지 않는 경우) 지정된 끌어오기 요청에 대한 레이블(태그)로 추가합니다. 유일한 필수 필드는 새 레이블(태그)의 이름입니다.
function createPullRequestLabel(label: WebApiCreateTagRequestData, repositoryId: string, pullRequestId: number, project?: string, projectId?: string): Promise<WebApiTagDefinition>
매개 변수
끌어오기 요청에 할당할 레이블입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- projectId
-
string
프로젝트 ID 또는 프로젝트 이름입니다.
반환
Promise<WebApiTagDefinition>
createPullRequestReviewer(IdentityRefWithVote, string, number, string, string)
끌어오기 요청에 검토자를 추가하거나 투표를 합니다.
function createPullRequestReviewer(reviewer: IdentityRefWithVote, repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<IdentityRefWithVote>
매개 변수
- reviewer
- IdentityRefWithVote
검토자의 투표.<br/>검토자의 ID가 여기에 포함된 경우 reviewerID 매개 변수와 일치해야 합니다.<br />검토자는이 방법으로 자신의 투표를 설정할 수 있습니다. 다른 검토자를 추가할 때 투표는 0으로 설정해야 합니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- reviewerId
-
string
검토자의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<IdentityRefWithVote>
createPullRequestReviewers(IdentityRef[], string, number, string)
끌어오기 요청에 검토자를 추가합니다.
function createPullRequestReviewers(reviewers: IdentityRef[], repositoryId: string, pullRequestId: number, project?: string): Promise<IdentityRefWithVote[]>
매개 변수
- reviewers
끌어오기 요청에 추가할 검토자입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<IdentityRefWithVote[]>
createPullRequestStatus(GitPullRequestStatus, string, number, string)
끌어오기 요청 상태를 만듭니다.
function createPullRequestStatus(status: GitPullRequestStatus, repositoryId: string, pullRequestId: number, project?: string): Promise<GitPullRequestStatus>
매개 변수
- status
- GitPullRequestStatus
만들 끌어오기 요청 상태입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestStatus>
createPush(GitPush, string, string)
리포지토리에 변경 내용을 푸시합니다.
function createPush(push: GitPush, repositoryId: string, project?: string): Promise<GitPush>
매개 변수
- push
- GitPush
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPush>
createRepository(GitRepositoryCreateOptions, string, string)
팀 프로젝트에서 git 리포지토리를 만듭니다.
function createRepository(gitRepositoryToCreate: GitRepositoryCreateOptions, project?: string, sourceRef?: string): Promise<GitRepository>
매개 변수
- gitRepositoryToCreate
- GitRepositoryCreateOptions
리포지토리 이름, 팀 프로젝트 및/또는 부모 리포지토리를 지정합니다. 요청이 프로젝트 범위인 경우(즉, 프로젝트 ID 포함) gitRepositoryToCreate에서 팀 프로젝트 정보를 생략할 수 있습니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- sourceRef
-
string
[선택 사항] 포크 리포지토리를 만드는 동안 사용할 원본 참조 지정
반환
Promise<GitRepository>
createRevert(GitAsyncRefOperationParameters, string, string)
끌어오기 요청에 연결된 특정 커밋 또는 커밋에 의해 도입된 변경 내용을 되돌리는 새 분기를 만드는 작업을 시작합니다.
function createRevert(revertToCreate: GitAsyncRefOperationParameters, project: string, repositoryId: string): Promise<GitRevert>
매개 변수
- revertToCreate
- GitAsyncRefOperationParameters
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID입니다.
반환
Promise<GitRevert>
createThread(GitPullRequestCommentThread, string, number, string)
끌어오기 요청에 스레드를 만듭니다.
function createThread(commentThread: GitPullRequestCommentThread, repositoryId: string, pullRequestId: number, project?: string): Promise<GitPullRequestCommentThread>
매개 변수
- commentThread
- GitPullRequestCommentThread
만들 스레드입니다. 스레드는 하나 이상의 주석을 포함해야 합니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestCommentThread>
createUnmaterializedPullRequestReviewer(IdentityRefWithVote, string, number, string)
끌어오기 요청의 검토자에 비물질화 ID를 추가합니다.
function createUnmaterializedPullRequestReviewer(reviewer: IdentityRefWithVote, repositoryId: string, pullRequestId: number, project?: string): Promise<IdentityRefWithVote>
매개 변수
- reviewer
- IdentityRefWithVote
끌어오기 요청에 추가할 검토자입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<IdentityRefWithVote>
deleteAttachment(string, string, number, string)
끌어오기 요청 첨부 파일을 삭제합니다.
function deleteAttachment(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<void>
매개 변수
- fileName
-
string
삭제할 첨부 파일의 이름입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
deleteComment(string, number, number, number, string)
끌어오기 요청에서 특정 스레드와 연결된 주석을 삭제합니다.
function deleteComment(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
원하는 주석이 있는 스레드의 ID입니다.
- commentId
-
number
주석의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
deleteEnablementStatus(boolean, boolean, string[])
DELETE는 DB에서 사용 상태 및 BillableCommitters 데이터를 삭제합니다. 사용 가능 데이터를 삭제하면 영향을 받는 리포지토리에 대해 활성화 데이터를 효과적으로 사용하지 않도록 설정합니다.
function deleteEnablementStatus(allProjects: boolean, includeBillableCommitters?: boolean, projectIds?: string[]): Promise<void>
매개 변수
- allProjects
-
boolean
- includeBillableCommitters
-
boolean
- projectIds
-
string[]
반환
Promise<void>
deleteLike(string, number, number, number, string)
메모에서 좋아요를 삭제합니다.
function deleteLike(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<void>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
주석이 포함된 스레드의 ID입니다.
- commentId
-
number
주석의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
deletePullRequestIterationStatus(string, number, number, number, string)
끌어오기 요청 반복 상태를 삭제합니다.
function deletePullRequestIterationStatus(repositoryId: string, pullRequestId: number, iterationId: number, statusId: number, project?: string): Promise<void>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- iterationId
-
number
끌어오기 요청 반복의 ID입니다.
- statusId
-
number
끌어오기 요청 상태의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
deletePullRequestLabels(string, number, string, string, string)
끌어오기 요청에 할당된 레이블(태그) 집합에서 제거합니다. 태그 자체는 삭제되지 않습니다.
function deletePullRequestLabels(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<void>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- labelIdOrName
-
string
요청된 레이블의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- projectId
-
string
프로젝트 ID 또는 프로젝트 이름입니다.
반환
Promise<void>
deletePullRequestReviewer(string, number, string, string)
끌어오기 요청에서 검토자를 제거합니다.
function deletePullRequestReviewer(repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<void>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- reviewerId
-
string
제거할 검토자의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
deletePullRequestStatus(string, number, number, string)
끌어오기 요청 상태를 삭제합니다.
function deletePullRequestStatus(repositoryId: string, pullRequestId: number, statusId: number, project?: string): Promise<void>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- statusId
-
number
끌어오기 요청 상태의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
deleteRefFavorite(string, number)
지정된 refs 즐겨찾기를 삭제합니다.
function deleteRefFavorite(project: string, favoriteId: number): Promise<void>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- favoriteId
-
number
삭제할 참조 즐겨찾기의 ID입니다.
반환
Promise<void>
deleteRepository(string, string)
Git 리포지토리 삭제
function deleteRepository(repositoryId: string, project?: string): Promise<void>
매개 변수
- repositoryId
-
string
리포지토리의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
deleteRepositoryFromRecycleBin(string, string)
일시 삭제된 Git 리포지토리를 삭제(하드 삭제)합니다.
function deleteRepositoryFromRecycleBin(project: string, repositoryId: string): Promise<void>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID입니다.
반환
Promise<void>
getAnnotatedTag(string, string, string)
주석이 추가된 태그를 가져옵니다.
function getAnnotatedTag(project: string, repositoryId: string, objectId: string): Promise<GitAnnotatedTag>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID 또는 이름입니다.
- objectId
-
string
가져올 태그의 ObjectId(Sha1Id)입니다.
반환
Promise<GitAnnotatedTag>
getAttachmentContent(string, string, number, string)
끌어오기 요청 첨부 파일의 파일 콘텐츠를 가져옵니다.
function getAttachmentContent(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<ArrayBuffer>
매개 변수
- fileName
-
string
첨부 파일의 이름입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<ArrayBuffer>
getAttachments(string, number, string)
지정된 끌어오기 요청에 연결된 파일 목록을 가져옵니다.
function getAttachments(repositoryId: string, pullRequestId: number, project?: string): Promise<Attachment[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<Attachment[]>
getAttachmentZip(string, string, number, string)
끌어오기 요청 첨부 파일의 파일 콘텐츠를 가져옵니다.
function getAttachmentZip(fileName: string, repositoryId: string, pullRequestId: number, project?: string): Promise<ArrayBuffer>
매개 변수
- fileName
-
string
첨부 파일의 이름입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<ArrayBuffer>
getBillableCommitters(string, Date, number, number)
지정된 날짜에 대한 Advanced Security 서비스에 대한 실제 청구 가능 커밋자를 검색합니다.
function getBillableCommitters(project: string, billingDate?: Date, skip?: number, take?: number): Promise<BillableCommitter[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- billingDate
-
Date
UTC가 필요합니다. 지정하지 않으면 이전 청구일의 기본값이 지정됩니다.
- skip
-
number
페이징을 시뮬레이션하려면 결과 집합의 X 행을 건너뜁니다.
- take
-
number
페이징을 시뮬레이션하기 위해 결과 집합의 Y 행을 반환합니다.
반환
Promise<BillableCommitter[]>
getBillableCommittersDetail(string, string, Date)
지정된 날짜에 대한 고급 보안 서비스에 대한 자세한 실제 청구 가능 커밋자를 검색합니다. 자세한 결과는 의도적으로 일시 삭제된 프로젝트 및 리포지토리를 필터링하여 청구 문제를 진단하는 데 도움이 되지 않습니다.
function getBillableCommittersDetail(project: string, includeDetails: string, billingDate?: Date): Promise<BillableCommitterDetail[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeDetails
-
string
청구 가능한 커밋자에 대한 모든 세부 정보를 반환합니다.
- billingDate
-
Date
UTC가 필요합니다. 지정하지 않으면 이전 청구일의 기본값이 지정됩니다.
반환
Promise<BillableCommitterDetail[]>
getBlob(string, string, string, boolean, string, boolean)
단일 Blob을 가져옵니다.
function getBlob(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<GitBlobRef>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- sha1
-
string
파일의 SHA1 해시입니다. "Git/Items/Get Item" 엔드포인트를 사용하여 파일의 SHA1을 가져올 수 있습니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- download
-
boolean
true이면 브라우저에서 렌더링하는 대신 다운로드하라는 메시지를 표시합니다. 참고: $format zip인 경우 이 값은 기본적으로 true로 설정됩니다.
- fileName
-
string
다운로드에 사용할 fileName을 제공합니다.
- resolveLfs
-
boolean
true이면 LFS 포인터 파일인 경우 Blob을 해당 LFS 콘텐츠로 확인합니다. octet-stream Accept 헤더 또는 $format 형식과만 호환
반환
Promise<GitBlobRef>
getBlobContent(string, string, string, boolean, string, boolean)
단일 Blob을 가져옵니다.
function getBlobContent(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<ArrayBuffer>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- sha1
-
string
파일의 SHA1 해시입니다. "Git/Items/Get Item" 엔드포인트를 사용하여 파일의 SHA1을 가져올 수 있습니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- download
-
boolean
true이면 브라우저에서 렌더링하는 대신 다운로드하라는 메시지를 표시합니다. 참고: $format zip인 경우 이 값은 기본적으로 true로 설정됩니다.
- fileName
-
string
다운로드에 사용할 fileName을 제공합니다.
- resolveLfs
-
boolean
true이면 LFS 포인터 파일인 경우 Blob을 해당 LFS 콘텐츠로 확인합니다. octet-stream Accept 헤더 또는 $format 형식과만 호환
반환
Promise<ArrayBuffer>
getBlobsZip(string[], string, string, string)
zip 파일 다운로드에서 하나 이상의 Blob을 가져옵니다.
function getBlobsZip(blobIds: string[], repositoryId: string, project?: string, filename?: string): Promise<ArrayBuffer>
매개 변수
- blobIds
-
string[]
zip 파일에서 반환할 Blob ID(SHA1 해시)입니다.
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- filename
-
string
반환
Promise<ArrayBuffer>
getBlobZip(string, string, string, boolean, string, boolean)
단일 Blob을 가져옵니다.
function getBlobZip(repositoryId: string, sha1: string, project?: string, download?: boolean, fileName?: string, resolveLfs?: boolean): Promise<ArrayBuffer>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- sha1
-
string
파일의 SHA1 해시입니다. "Git/Items/Get Item" 엔드포인트를 사용하여 파일의 SHA1을 가져올 수 있습니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- download
-
boolean
true이면 브라우저에서 렌더링하는 대신 다운로드하라는 메시지를 표시합니다. 참고: $format zip인 경우 이 값은 기본적으로 true로 설정됩니다.
- fileName
-
string
다운로드에 사용할 fileName을 제공합니다.
- resolveLfs
-
boolean
true이면 LFS 포인터 파일인 경우 Blob을 해당 LFS 콘텐츠로 확인합니다. octet-stream Accept 헤더 또는 $format 형식과만 호환
반환
Promise<ArrayBuffer>
getBranch(string, string, string, GitVersionDescriptor)
단일 분기에 대한 통계를 검색합니다.
function getBranch(repositoryId: string, name: string, project?: string, baseVersionDescriptor?: GitVersionDescriptor): Promise<GitBranchStats>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- name
-
string
분기의 이름입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- baseVersionDescriptor
- GitVersionDescriptor
기본으로 사용할 커밋 또는 분기를 식별합니다.
반환
Promise<GitBranchStats>
getBranches(string, string, GitVersionDescriptor)
리포지토리 내의 모든 분기에 대한 통계를 검색합니다.
function getBranches(repositoryId: string, project?: string, baseVersionDescriptor?: GitVersionDescriptor): Promise<GitBranchStats[]>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- baseVersionDescriptor
- GitVersionDescriptor
기본으로 사용할 커밋 또는 분기를 식별합니다.
반환
Promise<GitBranchStats[]>
getBranchStatsBatch(GitQueryBranchStatsCriteria, string, string)
여러 커밋에 대한 통계 검색
function getBranchStatsBatch(searchCriteria: GitQueryBranchStatsCriteria, repositoryId: string, project?: string): Promise<GitBranchStats[]>
매개 변수
- searchCriteria
- GitQueryBranchStatsCriteria
비교할 기본 커밋 및 대상 커밋 목록입니다.
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitBranchStats[]>
getChanges(string, string, string, number, number)
특정 커밋에 대한 변경 내용을 검색합니다.
function getChanges(commitId: string, repositoryId: string, project?: string, top?: number, skip?: number): Promise<GitCommitChanges>
매개 변수
- commitId
-
string
커밋의 ID입니다.
- repositoryId
-
string
리포지토리의 ID 또는 친숙한 이름입니다. 친숙한 이름을 사용하려면 projectId도 지정해야 합니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- top
-
number
반환할 최대 변경 횟수입니다.
- skip
-
number
건너뛸 변경 내용 수입니다.
반환
Promise<GitCommitChanges>
getCherryPick(string, number, string)
체리 선택 ID로 체리 선택 작업에 대한 정보를 검색합니다.
function getCherryPick(project: string, cherryPickId: number, repositoryId: string): Promise<GitCherryPick>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- cherryPickId
-
number
체리 픽의 ID입니다.
- repositoryId
-
string
리포지토리의 ID입니다.
반환
Promise<GitCherryPick>
getCherryPickConflict(string, number, number, string)
ID로 체리 선택에 대한 충돌을 검색합니다.
function getCherryPickConflict(repositoryId: string, cherryPickId: number, conflictId: number, project?: string): Promise<GitConflict>
매개 변수
- repositoryId
-
string
- cherryPickId
-
number
- conflictId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflict>
getCherryPickConflicts(string, number, string, string, number, boolean, boolean, boolean)
체리 픽에 대한 모든 충돌 검색
function getCherryPickConflicts(repositoryId: string, cherryPickId: number, project?: string, continuationToken?: string, top?: number, excludeResolved?: boolean, onlyResolved?: boolean, includeObsolete?: boolean): Promise<PagedList<GitConflict>>
매개 변수
- repositoryId
-
string
- cherryPickId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- continuationToken
-
string
- top
-
number
- excludeResolved
-
boolean
- onlyResolved
-
boolean
- includeObsolete
-
boolean
반환
Promise<PagedList<GitConflict>>
getCherryPickForRefName(string, string, string)
특정 분기에 대한 체리 선택 작업에 대한 정보를 검색합니다. 이 작업은 기본 개체 구조로 인해 비용이 많이 들기 때문에 이 API는 가장 최근의 1000개 체리 선택 작업만 살펴봅니다.
function getCherryPickForRefName(project: string, repositoryId: string, refName: string): Promise<GitCherryPick>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID입니다.
- refName
-
string
체리 선택 작업에 사용되는 GitAsyncRefOperationParameters generatedRefName입니다.
반환
Promise<GitCherryPick>
getCherryPickRelationships(string, string, string, boolean)
commitId가 지정되면 동일한 체리 선택 패밀리에 있는 커밋 목록을 반환합니다.
function getCherryPickRelationships(repositoryNameOrId: string, commitId: string, project?: string, includeLinks?: boolean): Promise<GitCommitRef[]>
매개 변수
- repositoryNameOrId
-
string
- commitId
-
string
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeLinks
-
boolean
반환
Promise<GitCommitRef[]>
getComment(string, number, number, number, string)
끌어오기 요청에서 특정 스레드와 연결된 주석을 검색합니다.
function getComment(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<Comment>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
원하는 주석이 있는 스레드의 ID입니다.
- commentId
-
number
주석의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<Comment>
getComments(string, number, number, string)
끌어오기 요청에서 특정 스레드와 연결된 모든 주석을 검색합니다.
function getComments(repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<Comment[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
스레드의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<Comment[]>
getCommit(string, string, string, number)
특정 커밋을 검색합니다.
function getCommit(commitId: string, repositoryId: string, project?: string, changeCount?: number): Promise<GitCommit>
매개 변수
- commitId
-
string
커밋의 ID입니다.
- repositoryId
-
string
리포지토리의 ID 또는 친숙한 이름입니다. 친숙한 이름을 사용하려면 projectId도 지정해야 합니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- changeCount
-
number
결과에 포함할 변경 횟수입니다.
반환
Promise<GitCommit>
getCommitDiffs(string, string, boolean, number, number, GitBaseVersionDescriptor, GitTargetVersionDescriptor)
기본 커밋과 대상 커밋 간에 가장 가까운 공통 커밋(병합 기준)을 찾고 기본 커밋과 대상 커밋 또는 공통 커밋과 대상 커밋 간의 차이(diff)를 가져옵니다.
function getCommitDiffs(repositoryId: string, project?: string, diffCommonCommit?: boolean, top?: number, skip?: number, baseVersionDescriptor?: GitBaseVersionDescriptor, targetVersionDescriptor?: GitTargetVersionDescriptor): Promise<GitCommitDiffs>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- diffCommonCommit
-
boolean
true이면 공통 커밋과 대상 커밋 간의 차이입니다. false이면 기본 커밋과 대상 커밋 간에 차이입니다.
- top
-
number
반환할 최대 변경 내용 수입니다. 기본값은 100입니다.
- skip
-
number
건너뛸 변경 내용 수
- baseVersionDescriptor
- GitBaseVersionDescriptor
기본 커밋에 대한 설명자입니다.
- targetVersionDescriptor
- GitTargetVersionDescriptor
대상 커밋에 대한 설명자입니다.
반환
Promise<GitCommitDiffs>
getCommits(string, GitQueryCommitsCriteria, string)
프로젝트에 대한 git 커밋 검색
function getCommits(repositoryId: string, searchCriteria: GitQueryCommitsCriteria, project?: string): Promise<GitCommitRef[]>
매개 변수
- repositoryId
-
string
리포지토리의 ID 또는 친숙한 이름입니다. 친숙한 이름을 사용하려면 projectId도 지정해야 합니다.
- searchCriteria
- GitQueryCommitsCriteria
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitCommitRef[]>
getCommitsBatch(GitQueryCommitsCriteria, string, string, number, number, boolean)
검색 조건과 일치하는 프로젝트에 대한 git 커밋 검색
function getCommitsBatch(searchCriteria: GitQueryCommitsCriteria, repositoryId: string, project?: string, skip?: number, top?: number, includeStatuses?: boolean): Promise<GitCommitRef[]>
매개 변수
- searchCriteria
- GitQueryCommitsCriteria
검색 옵션
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- skip
-
number
건너뛸 커밋 수입니다. 값은 3,000,000을 초과할 수 없습니다.
- top
-
number
반환할 최대 커밋 수입니다. 값은 50,000을 초과할 수 없습니다.
- includeStatuses
-
boolean
추가 커밋 상태 정보를 포함하려면 True입니다.
반환
Promise<GitCommitRef[]>
getDeletedRepositories(string)
삭제된 git 리포지토리를 검색합니다.
function getDeletedRepositories(project: string): Promise<GitDeletedRepository[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitDeletedRepository[]>
getEnablementStatus(string[], Date, number, number)
프로젝트의 리포지토리에 대한 GET 사용 상태입니다.
function getEnablementStatus(projectIds?: string[], billingDate?: Date, skip?: number, take?: number): Promise<AdvSecEnablementStatus[]>
매개 변수
- projectIds
-
string[]
Null 기본값은 호스트의 모든 프로젝트로, 반환할 프로젝트의 리포지토리 상태 목록입니다.
- billingDate
-
Date
UTC가 필요합니다. Null 기본값은 UtcNow()입니다. 특정 시점 상태에 대해 제공할 수 있습니다.
- skip
-
number
페이징을 시뮬레이션하려면 결과 집합의 X 행을 건너뜁니다.
- take
-
number
페이징을 시뮬레이션하기 위해 결과 집합의 Y 행을 반환합니다.
반환
Promise<AdvSecEnablementStatus[]>
getEnableOnCreateHost(boolean)
function getEnableOnCreateHost(enableOnCreateHost: boolean): Promise<boolean>
매개 변수
- enableOnCreateHost
-
boolean
반환
Promise<boolean>
getEnableOnCreateProject(string)
function getEnableOnCreateProject(enableOnCreateProjectId: string): Promise<boolean>
매개 변수
- enableOnCreateProjectId
-
string
반환
Promise<boolean>
getEstimatedBillableCommittersRepo(string, string)
지난 90일 동안 리포지토리에 대한 예상 청구 가능 커밋자를 가져옵니다.
function getEstimatedBillableCommittersRepo(project: string, repositoryId: string): Promise<BillableCommitter[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
반환
Promise<BillableCommitter[]>
getEstimatedBillablePushersOrg()
지난 90일 동안 조직에 대한 예상 청구 가능 푸셔를 가져옵니다.
function getEstimatedBillablePushersOrg(): Promise<BillablePusher[]>
반환
Promise<BillablePusher[]>
getEstimatedBillablePushersProject(string)
지난 90일 동안 프로젝트에 대한 예상 청구 가능 푸셔를 가져옵니다.
function getEstimatedBillablePushersProject(project: string): Promise<BillablePusher[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<BillablePusher[]>
getFileDiffs(FileDiffsCriteria, string, string)
지정된 각 파일에 대한 파일 차이 가져오기
function getFileDiffs(fileDiffsCriteria: FileDiffsCriteria, project: string, repositoryId: string): Promise<FileDiff[]>
매개 변수
- fileDiffsCriteria
- FileDiffsCriteria
파일 매개 변수 개체 목록
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 이름 또는 ID
반환
Promise<FileDiff[]>
getForks(string, string, string, boolean)
컬렉션에서 리포지토리의 모든 포크를 검색합니다.
function getForks(repositoryNameOrId: string, collectionId: string, project?: string, includeLinks?: boolean): Promise<GitRepositoryRef[]>
매개 변수
- repositoryNameOrId
-
string
리포지토리의 이름 또는 ID입니다.
- collectionId
-
string
팀 프로젝트 컬렉션 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeLinks
-
boolean
링크를 포함하려면 True입니다.
반환
Promise<GitRepositoryRef[]>
getForkSyncRequest(string, number, string, boolean)
특정 포크 동기화 작업의 세부 정보를 가져옵니다.
function getForkSyncRequest(repositoryNameOrId: string, forkSyncOperationId: number, project?: string, includeLinks?: boolean): Promise<GitForkSyncRequest>
매개 변수
- repositoryNameOrId
-
string
리포지토리의 이름 또는 ID입니다.
- forkSyncOperationId
-
number
동기화 요청의 OperationId입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeLinks
-
boolean
링크를 포함하려면 True입니다.
반환
Promise<GitForkSyncRequest>
getForkSyncRequests(string, string, boolean, boolean)
이 리포지토리에서 요청된 모든 포크 동기화 작업을 검색합니다.
function getForkSyncRequests(repositoryNameOrId: string, project?: string, includeAbandoned?: boolean, includeLinks?: boolean): Promise<GitForkSyncRequest[]>
매개 변수
- repositoryNameOrId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeAbandoned
-
boolean
중단된 요청을 포함하려면 True입니다.
- includeLinks
-
boolean
링크를 포함하려면 True입니다.
반환
Promise<GitForkSyncRequest[]>
getHfsItem(string, string, string, string, VersionControlRecursionType, boolean, boolean, boolean, GitVersionDescriptor, boolean, boolean, boolean)
단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getHfsItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<GitItem>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- path
-
string
항목 경로입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- includeContent
-
boolean
json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.
- resolveHfs
-
boolean
Git HFS 포인터 파일을 확인하여 Git HFS에서 실제 콘텐츠를 반환하려면 true로 설정합니다. 기본값은 true입니다.
- sanitize
-
boolean
svg 파일을 삭제하고 이미지로 반환하려면 true로 설정합니다. svg 파일에 대해 요청된 경우에만 유용합니다. 기본값은 false입니다.
반환
Promise<GitItem>
getHfsItemContent(string, string, string, string, VersionControlRecursionType, boolean, boolean, boolean, GitVersionDescriptor, boolean, boolean, boolean)
단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getHfsItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- path
-
string
항목 경로입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- includeContent
-
boolean
json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.
- resolveHfs
-
boolean
Git HFS 포인터 파일을 확인하여 Git HFS에서 실제 콘텐츠를 반환하려면 true로 설정합니다. 기본값은 true입니다.
- sanitize
-
boolean
svg 파일을 삭제하고 이미지로 반환하려면 true로 설정합니다. svg 파일에 대해 요청된 경우에만 유용합니다. 기본값은 false입니다.
반환
Promise<ArrayBuffer>
getHfsItems(string, string, string, VersionControlRecursionType, boolean, boolean, boolean, boolean, GitVersionDescriptor, boolean)
항목 컬렉션에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getHfsItems(repositoryId: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, includeLinks?: boolean, versionDescriptor?: GitVersionDescriptor, zipForUnix?: boolean): Promise<GitItem[]>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- includeLinks
-
boolean
항목에 대한 링크를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- zipForUnix
-
boolean
실행 파일 및 symlink와 같은 unix(및 POSIX) 시스템에 대한 파일 권한을 유지하려면 true로 설정합니다.
반환
Promise<GitItem[]>
getHfsItemText(string, string, string, string, VersionControlRecursionType, boolean, boolean, boolean, GitVersionDescriptor, boolean, boolean, boolean)
단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getHfsItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<string>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- path
-
string
항목 경로입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- includeContent
-
boolean
json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.
- resolveHfs
-
boolean
Git HFS 포인터 파일을 확인하여 Git HFS에서 실제 콘텐츠를 반환하려면 true로 설정합니다. 기본값은 true입니다.
- sanitize
-
boolean
svg 파일을 삭제하고 이미지로 반환하려면 true로 설정합니다. svg 파일에 대해 요청된 경우에만 유용합니다. 기본값은 false입니다.
반환
Promise<string>
getHfsItemZip(string, string, string, string, VersionControlRecursionType, boolean, boolean, boolean, GitVersionDescriptor, boolean, boolean, boolean)
단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getHfsItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- path
-
string
항목 경로입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- includeContent
-
boolean
json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.
- resolveHfs
-
boolean
Git HFS 포인터 파일을 확인하여 Git HFS에서 실제 콘텐츠를 반환하려면 true로 설정합니다. 기본값은 true입니다.
- sanitize
-
boolean
svg 파일을 삭제하고 이미지로 반환하려면 true로 설정합니다. svg 파일에 대해 요청된 경우에만 유용합니다. 기본값은 false입니다.
반환
Promise<ArrayBuffer>
getImportRequest(string, string, number)
특정 가져오기 요청을 검색합니다.
function getImportRequest(project: string, repositoryId: string, importRequestId: number): Promise<GitImportRequest>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- importRequestId
-
number
가져오기 요청에 대한 고유 식별자입니다.
반환
Promise<GitImportRequest>
getItem(string, string, string, string, VersionControlRecursionType, boolean, boolean, boolean, GitVersionDescriptor, boolean, boolean, boolean)
단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<GitItem>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- path
-
string
항목 경로입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- includeContent
-
boolean
json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.
- resolveLfs
-
boolean
Git LFS 포인터 파일을 확인하여 Git LFS에서 실제 콘텐츠를 반환하려면 true로 설정합니다. 기본값은 false입니다.
- sanitize
-
boolean
svg 파일을 삭제하고 이미지로 반환하려면 true로 설정합니다. svg 파일에 대해 요청된 경우에만 유용합니다. 기본값은 false입니다.
반환
Promise<GitItem>
getItemContent(string, string, string, string, VersionControlRecursionType, boolean, boolean, boolean, GitVersionDescriptor, boolean, boolean, boolean)
단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- path
-
string
항목 경로입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- includeContent
-
boolean
json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.
- resolveLfs
-
boolean
Git LFS 포인터 파일을 확인하여 Git LFS에서 실제 콘텐츠를 반환하려면 true로 설정합니다. 기본값은 false입니다.
- sanitize
-
boolean
svg 파일을 삭제하고 이미지로 반환하려면 true로 설정합니다. svg 파일에 대해 요청된 경우에만 유용합니다. 기본값은 false입니다.
반환
Promise<ArrayBuffer>
getItems(string, string, string, VersionControlRecursionType, boolean, boolean, boolean, boolean, GitVersionDescriptor, boolean)
항목 컬렉션에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getItems(repositoryId: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, includeLinks?: boolean, versionDescriptor?: GitVersionDescriptor, zipForUnix?: boolean): Promise<GitItem[]>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- includeLinks
-
boolean
항목에 대한 링크를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- zipForUnix
-
boolean
실행 파일 및 symlink와 같은 unix(및 POSIX) 시스템에 대한 파일 권한을 유지하려면 true로 설정합니다.
반환
Promise<GitItem[]>
getItemsBatch(GitItemRequestData, string, string)
경로 목록 또는 긴 경로가 지정된 리포지토리/프로젝트의 항목 집합에서 일괄 처리 만들기를 검색하기 위한 게시물
function getItemsBatch(requestData: GitItemRequestData, repositoryId: string, project?: string): Promise<GitItem[][]>
매개 변수
- requestData
- GitItemRequestData
요청 데이터 특성: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: 경로, 버전 및 재귀 수준을 포함하여 가져올 항목의 컬렉션입니다. IncludeContentMetadata: 모든 항목 LatestProcessedChange에 대한 메타데이터를 포함할지 여부: 마지막으로 변경된 각 항목을 커밋하기 위해 단순 참조를 포함할지 여부입니다. IncludeLinks: 단순 참조에 _links 필드를 포함할지 여부입니다.
- repositoryId
-
string
리포지토리의 이름 또는 ID
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitItem[][]>
getItemText(string, string, string, string, VersionControlRecursionType, boolean, boolean, boolean, GitVersionDescriptor, boolean, boolean, boolean)
단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<string>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- path
-
string
항목 경로입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- includeContent
-
boolean
json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.
- resolveLfs
-
boolean
Git LFS 포인터 파일을 확인하여 Git LFS에서 실제 콘텐츠를 반환하려면 true로 설정합니다. 기본값은 false입니다.
- sanitize
-
boolean
svg 파일을 삭제하고 이미지로 반환하려면 true로 설정합니다. svg 파일에 대해 요청된 경우에만 유용합니다. 기본값은 false입니다.
반환
Promise<string>
getItemZip(string, string, string, string, VersionControlRecursionType, boolean, boolean, boolean, GitVersionDescriptor, boolean, boolean, boolean)
단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.
function getItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: GitVersionDescriptor, includeContent?: boolean, resolveLfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- path
-
string
항목 경로입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- scopePath
-
string
경로 범위입니다. 기본값은 null입니다.
- recursionLevel
- VersionControlRecursionType
이 요청의 재귀 수준입니다. 기본값은 'none'이고 재귀는 없습니다.
- includeContentMetadata
-
boolean
콘텐츠 메타데이터를 포함하려면 true로 설정합니다. 기본값은 false입니다.
- latestProcessedChange
-
boolean
최신 변경 내용을 포함하려면 true로 설정합니다. 기본값은 false입니다.
- download
-
boolean
응답을 파일로 다운로드하려면 true로 설정합니다. 기본값은 false입니다.
- versionDescriptor
- GitVersionDescriptor
버전 설명자입니다. 기본값은 리포지토리의 기본 분기입니다.
- includeContent
-
boolean
json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.
- resolveLfs
-
boolean
Git LFS 포인터 파일을 확인하여 Git LFS에서 실제 콘텐츠를 반환하려면 true로 설정합니다. 기본값은 false입니다.
- sanitize
-
boolean
svg 파일을 삭제하고 이미지로 반환하려면 true로 설정합니다. svg 파일에 대해 요청된 경우에만 유용합니다. 기본값은 false입니다.
반환
Promise<ArrayBuffer>
getLikes(string, number, number, number, string)
댓글에 좋아요를 받습니다.
function getLikes(repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<IdentityRef[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
주석이 포함된 스레드의 ID입니다.
- commentId
-
number
주석의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<IdentityRef[]>
getMergeBases(string, string, string, string, string, string)
필요에 따라 포크에서 두 커밋의 병합 베이스를 찾습니다. otherRepositoryId를 지정하지 않으면 병합 기반은 로컬 리포지토리NameOrId의 컨텍스트 내에서만 계산됩니다.
function getMergeBases(repositoryNameOrId: string, commitId: string, otherCommitId: string, project?: string, otherCollectionId?: string, otherRepositoryId?: string): Promise<GitCommitRef[]>
매개 변수
- repositoryNameOrId
-
string
로컬 리포지토리의 ID 또는 이름입니다.
- commitId
-
string
첫 번째 커밋은 일반적으로 잠재적인 병합 대상 분기의 팁입니다.
- otherCommitId
-
string
다른 커밋은 일반적으로 잠재적 병합의 원본 분기 팁입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- otherCollectionId
-
string
otherCommitId가 있는 컬렉션 ID입니다.
- otherRepositoryId
-
string
otherCommitId가 있는 리포지토리 ID입니다.
반환
Promise<GitCommitRef[]>
getMergeRequest(string, string, number, boolean)
특정 병합 작업의 세부 정보를 가져옵니다.
function getMergeRequest(project: string, repositoryNameOrId: string, mergeOperationId: number, includeLinks?: boolean): Promise<GitMerge>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryNameOrId
-
string
리포지토리의 이름 또는 ID입니다.
- mergeOperationId
-
number
병합 요청의 OperationId입니다.
- includeLinks
-
boolean
링크를 포함하려면 True입니다.
반환
Promise<GitMerge>
getPermission(string, string, string)
GET Advanced Security Permission status.
function getPermission(projectName?: string, repositoryId?: string, permission?: string): Promise<boolean>
매개 변수
- projectName
-
string
- repositoryId
-
string
리포지토리 사용자가 액세스하려고 합니다.
- permission
-
string
요청되는 권한은 "viewAlert" "dismissAlert" "manage" "viewEnablement" 또는 "repoRead"여야 합니다.
반환
Promise<boolean>
getPullRequest(string, number, string, number, number, number, boolean, boolean)
끌어오기 요청을 검색합니다.
function getPullRequest(repositoryId: string, pullRequestId: number, project?: string, maxCommentLength?: number, skip?: number, top?: number, includeCommits?: boolean, includeWorkItemRefs?: boolean): Promise<GitPullRequest>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
검색할 끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- maxCommentLength
-
number
사용되지 않습니다.
- skip
-
number
사용되지 않습니다.
- top
-
number
사용되지 않습니다.
- includeCommits
-
boolean
true이면 연결된 커밋과 함께 끌어오기 요청이 반환됩니다.
- includeWorkItemRefs
-
boolean
true이면 연결된 작업 항목 참조와 함께 끌어오기 요청이 반환됩니다.
반환
Promise<GitPullRequest>
getPullRequestById(number, string)
끌어오기 요청을 검색합니다.
function getPullRequestById(pullRequestId: number, project?: string): Promise<GitPullRequest>
매개 변수
- pullRequestId
-
number
검색할 끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequest>
getPullRequestCommits(string, number, string)
지정된 끌어오기 요청에 대한 커밋을 가져옵니다.
function getPullRequestCommits(repositoryId: string, pullRequestId: number, project?: string): Promise<PagedList<GitCommitRef>>
매개 변수
- repositoryId
-
string
리포지토리의 ID 또는 이름입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<PagedList<GitCommitRef>>
getPullRequestConflict(string, number, number, string)
ID로 끌어오기 요청에 대한 충돌을 검색합니다.
function getPullRequestConflict(repositoryId: string, pullRequestId: number, conflictId: number, project?: string): Promise<GitConflict>
매개 변수
- repositoryId
-
string
- pullRequestId
-
number
- conflictId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflict>
getPullRequestConflicts(string, number, string, number, number, boolean, boolean, boolean)
끌어오기 요청에 대한 모든 충돌 검색
function getPullRequestConflicts(repositoryId: string, pullRequestId: number, project?: string, skip?: number, top?: number, includeObsolete?: boolean, excludeResolved?: boolean, onlyResolved?: boolean): Promise<GitConflict[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 리포지토리입니다.
- pullRequestId
-
number
끌어오기 요청 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- skip
-
number
건너뛸 충돌입니다.
- top
-
number
건너뛴 후 반환할 충돌입니다.
- includeObsolete
-
boolean
사용되지 않는 충돌을 포함합니다.
- excludeResolved
-
boolean
이미 해결된 충돌을 제외합니다.
- onlyResolved
-
boolean
해결된 충돌만 반환합니다.
반환
Promise<GitConflict[]>
getPullRequestIteration(string, number, number, string)
끌어오기 요청에 대해 지정된 반복을 가져옵니다.
function getPullRequestIteration(repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<GitPullRequestIteration>
매개 변수
- repositoryId
-
string
리포지토리의 ID 또는 이름입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- iterationId
-
number
반환할 끌어오기 요청 반복의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestIteration>
getPullRequestIterationChanges(string, number, number, string, number, number, number)
두 반복 간의 끌어오기 요청에서 변경된 내용을 검색합니다.
function getPullRequestIterationChanges(repositoryId: string, pullRequestId: number, iterationId: number, project?: string, top?: number, skip?: number, compareTo?: number): Promise<GitPullRequestIterationChanges>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- iterationId
-
number
끌어오기 요청 반복의 ID입니다. <br/> 반복 하나는 끌어오기 요청이 생성되고 원본 분기에 푸시가 있을 때 후속 반복이 생성되는 원본 분기의 헤드입니다. 허용되는 값은 이 끌어오기 요청에서 1에서 최대 반복 사이입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- top
-
number
선택적. 검색할 변경 내용 수입니다. 기본값은 100이고 최대값은 2000입니다.
- skip
-
number
선택적. 무시할 변경 횟수입니다. 예를 들어 변경 내용 101-150을 검색하려면 상위 50을 설정하고 100으로 건너뜁니다.
- compareTo
-
number
비교할 끌어오기 요청 반복의 ID입니다. 기본값은 원본 분기와 대상 분기 간의 공통 커밋과 비교되었음을 나타내는 0입니다.
반환
Promise<GitPullRequestIterationChanges>
getPullRequestIterationCommits(string, number, number, string, number, number)
끌어오기 요청의 지정된 반복에 대한 커밋을 가져옵니다.
function getPullRequestIterationCommits(repositoryId: string, pullRequestId: number, iterationId: number, project?: string, top?: number, skip?: number): Promise<GitCommitRef[]>
매개 변수
- repositoryId
-
string
리포지토리의 ID 또는 이름입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- iterationId
-
number
커밋을 가져올 반복의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- top
-
number
반환할 최대 커밋 수입니다. 일괄 처리당 반환할 수 있는 커밋의 최대 수는 500개입니다.
- skip
-
number
건너뛸 커밋 수입니다.
반환
Promise<GitCommitRef[]>
getPullRequestIterations(string, number, string, boolean)
지정된 끌어오기 요청에 대한 반복 목록을 가져옵니다.
function getPullRequestIterations(repositoryId: string, pullRequestId: number, project?: string, includeCommits?: boolean): Promise<GitPullRequestIteration[]>
매개 변수
- repositoryId
-
string
리포지토리의 ID 또는 이름입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeCommits
-
boolean
true이면 응답에 각 반복과 연결된 커밋을 포함합니다.
반환
Promise<GitPullRequestIteration[]>
getPullRequestIterationStatus(string, number, number, number, string)
ID별로 특정 끌어오기 요청 반복 상태를 가져옵니다. 상태 ID는 모든 반복에서 끌어오기 요청 내에서 고유합니다.
function getPullRequestIterationStatus(repositoryId: string, pullRequestId: number, iterationId: number, statusId: number, project?: string): Promise<GitPullRequestStatus>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- iterationId
-
number
끌어오기 요청 반복의 ID입니다.
- statusId
-
number
끌어오기 요청 상태의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestStatus>
getPullRequestIterationStatuses(string, number, number, string)
끌어오기 요청 반복과 연결된 모든 상태를 가져옵니다.
function getPullRequestIterationStatuses(repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<GitPullRequestStatus[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- iterationId
-
number
끌어오기 요청 반복의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestStatus[]>
getPullRequestLabel(string, number, string, string, string)
끌어오기 요청에 할당된 단일 레이블(태그)을 검색합니다.
function getPullRequestLabel(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<WebApiTagDefinition>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- labelIdOrName
-
string
요청된 레이블의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- projectId
-
string
프로젝트 ID 또는 프로젝트 이름입니다.
반환
Promise<WebApiTagDefinition>
getPullRequestLabels(string, number, string, string)
끌어오기 요청에 할당된 모든 레이블(태그)을 가져옵니다.
function getPullRequestLabels(repositoryId: string, pullRequestId: number, project?: string, projectId?: string): Promise<WebApiTagDefinition[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- projectId
-
string
프로젝트 ID 또는 프로젝트 이름입니다.
반환
Promise<WebApiTagDefinition[]>
getPullRequestProperties(string, number, string)
끌어오기 요청의 외부 속성을 가져옵니다.
function getPullRequestProperties(repositoryId: string, pullRequestId: number, project?: string): Promise<any>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<any>
getPullRequestQuery(GitPullRequestQuery, string, string)
이 API는 지정된 커밋과 관련된 끌어오기 요청을 찾는 데 사용됩니다. 특정 병합 커밋을 만든 끌어오기 요청을 찾거나 특정 커밋을 병합한 모든 끌어오기 요청을 찾는 데 사용할 수 있습니다. 입력은 각각 커밋 목록을 포함하는 쿼리 목록입니다. 검색하는 각 커밋에 대해 끌어오기 요청을> 커밋 사전을 다시 가져옵니다.
function getPullRequestQuery(queries: GitPullRequestQuery, repositoryId: string, project?: string): Promise<GitPullRequestQuery>
매개 변수
- queries
- GitPullRequestQuery
수행할 쿼리 목록입니다.
- repositoryId
-
string
리포지토리의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestQuery>
getPullRequestReviewer(string, number, string, string)
끌어오기 요청에서 특정 검토자에 대한 정보 검색
function getPullRequestReviewer(repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<IdentityRefWithVote>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- reviewerId
-
string
검토자의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<IdentityRefWithVote>
getPullRequestReviewers(string, number, string)
끌어오기 요청에 대한 검토자 검색
function getPullRequestReviewers(repositoryId: string, pullRequestId: number, project?: string): Promise<IdentityRefWithVote[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<IdentityRefWithVote[]>
getPullRequests(string, GitPullRequestSearchCriteria, string, number, number, number)
지정된 조건과 일치하는 모든 끌어오기 요청을 검색합니다.
function getPullRequests(repositoryId: string, searchCriteria: GitPullRequestSearchCriteria, project?: string, maxCommentLength?: number, skip?: number, top?: number): Promise<GitPullRequest[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- searchCriteria
- GitPullRequestSearchCriteria
이 검색 조건과 일치하는 끌어오기 요청이 반환됩니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- maxCommentLength
-
number
사용되지 않습니다.
- skip
-
number
무시할 끌어오기 요청 수입니다. 예를 들어 결과 101-150을 검색하려면 위쪽을 50으로 설정하고 100으로 건너뜁니다.
- top
-
number
검색할 끌어오기 요청 수입니다.
반환
Promise<GitPullRequest[]>
getPullRequestsByProject(string, GitPullRequestSearchCriteria, number, number, number)
지정된 조건과 일치하는 모든 끌어오기 요청을 검색합니다.
function getPullRequestsByProject(project: string, searchCriteria: GitPullRequestSearchCriteria, maxCommentLength?: number, skip?: number, top?: number): Promise<GitPullRequest[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- searchCriteria
- GitPullRequestSearchCriteria
이 검색 조건과 일치하는 끌어오기 요청이 반환됩니다.
- maxCommentLength
-
number
사용되지 않습니다.
- skip
-
number
무시할 끌어오기 요청 수입니다. 예를 들어 결과 101-150을 검색하려면 위쪽을 50으로 설정하고 100으로 건너뜁니다.
- top
-
number
검색할 끌어오기 요청 수입니다.
반환
Promise<GitPullRequest[]>
getPullRequestStatus(string, number, number, string)
ID별로 특정 끌어오기 요청 상태를 가져옵니다. 상태 ID는 모든 반복에서 끌어오기 요청 내에서 고유합니다.
function getPullRequestStatus(repositoryId: string, pullRequestId: number, statusId: number, project?: string): Promise<GitPullRequestStatus>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- statusId
-
number
끌어오기 요청 상태의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestStatus>
getPullRequestStatuses(string, number, string)
끌어오기 요청과 연결된 모든 상태를 가져옵니다.
function getPullRequestStatuses(repositoryId: string, pullRequestId: number, project?: string): Promise<GitPullRequestStatus[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestStatus[]>
getPullRequestThread(string, number, number, string, number, number)
끌어오기 요청에서 스레드를 검색합니다.
function getPullRequestThread(repositoryId: string, pullRequestId: number, threadId: number, project?: string, iteration?: number, baseIteration?: number): Promise<GitPullRequestCommentThread>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
스레드의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- iteration
-
number
지정한 경우 이 반복을 diff의 오른쪽으로 사용하여 스레드 위치를 추적합니다.
- baseIteration
-
number
지정한 경우 이 반복을 diff의 왼쪽으로 사용하여 스레드 위치를 추적합니다.
반환
Promise<GitPullRequestCommentThread>
getPullRequestWorkItemRefs(string, number, string)
끌어오기 요청과 연결된 작업 항목 목록을 검색합니다.
function getPullRequestWorkItemRefs(repositoryId: string, pullRequestId: number, project?: string): Promise<ResourceRef[]>
매개 변수
- repositoryId
-
string
리포지토리의 ID 또는 이름입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<ResourceRef[]>
getPush(string, number, string, number, boolean)
특정 푸시를 검색합니다.
function getPush(repositoryId: string, pushId: number, project?: string, includeCommits?: number, includeRefUpdates?: boolean): Promise<GitPush>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- pushId
-
number
푸시의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeCommits
-
number
결과에 포함할 커밋 수입니다.
- includeRefUpdates
-
boolean
true이면 푸시에 의해 업데이트된 참조 목록을 포함합니다.
반환
Promise<GitPush>
getPushCommits(string, number, string, number, number, boolean)
특정 푸시와 연결된 커밋 목록을 검색합니다.
function getPushCommits(repositoryId: string, pushId: number, project?: string, top?: number, skip?: number, includeLinks?: boolean): Promise<GitCommitRef[]>
매개 변수
- repositoryId
-
string
리포지토리의 ID 또는 친숙한 이름입니다. 친숙한 이름을 사용하려면 projectId도 지정해야 합니다.
- pushId
-
number
푸시의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- top
-
number
반환할 최대 커밋 수입니다("상위 x 커밋 가져오기").
- skip
-
number
건너뛸 커밋 수입니다.
- includeLinks
-
boolean
리소스에 대한 REST URL 링크를 포함하지 않도록 하려면 false로 설정합니다. 기본값은 true입니다.
반환
Promise<GitCommitRef[]>
getPushes(string, string, number, number, GitPushSearchCriteria)
지정된 리포지토리와 연결된 푸시를 검색합니다.
function getPushes(repositoryId: string, project?: string, skip?: number, top?: number, searchCriteria?: GitPushSearchCriteria): Promise<GitPush[]>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- skip
-
number
건너뛸 푸시 수입니다.
- top
-
number
반환할 푸시 수입니다.
- searchCriteria
- GitPushSearchCriteria
검색 조건 특성: fromDate, toDate, pusherId, refName, includeRefUpdates 또는 includeLinks. fromDate: 검색할 시작 날짜입니다. toDate: 검색할 종료 날짜입니다. pusherId: 푸시를 제출한 사람의 ID입니다. refName: 고려할 분기 이름입니다. includeRefUpdates: true이면 푸시에 의해 업데이트된 참조 목록을 포함합니다. includeLinks: 단순 참조에 _links 필드를 포함할지 여부입니다.
반환
Promise<GitPush[]>
getRecycleBinRepositories(string)
휴지통에서 일시 삭제된 git 리포지토리를 검색합니다.
function getRecycleBinRepositories(project: string): Promise<GitDeletedRepository[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitDeletedRepository[]>
getRefFavorite(string, number)
즐겨찾는 ID에 대한 refs 즐겨찾기를 가져옵니다.
function getRefFavorite(project: string, favoriteId: number): Promise<GitRefFavorite>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- favoriteId
-
number
요청된 참조 즐겨찾기의 ID입니다.
반환
Promise<GitRefFavorite>
getRefFavorites(string, string, string)
리포지토리 및 ID에 대한 refs 즐겨찾기를 가져옵니다.
function getRefFavorites(project: string, repositoryId?: string, identityId?: string): Promise<GitRefFavorite[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID입니다.
- identityId
-
string
즐겨찾기를 검색할 ID의 ID입니다. null이면 요청 ID가 사용됩니다.
반환
Promise<GitRefFavorite[]>
getRefFavoritesForProject(string, string)
function getRefFavoritesForProject(project: string, identityId?: string): Promise<GitRefFavorite[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- identityId
-
string
반환
Promise<GitRefFavorite[]>
getRefs(string, string, string, boolean, boolean, boolean, boolean, boolean, string)
제공된 리포지토리에 해당 refs를 쿼리하고 반환합니다.
function getRefs(repositoryId: string, project?: string, filter?: string, includeLinks?: boolean, includeStatuses?: boolean, includeMyBranches?: boolean, latestStatusesOnly?: boolean, peelTags?: boolean, filterContains?: string): Promise<PagedList<GitRef>>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- filter
-
string
[선택 사항] refs에 적용할 필터입니다(시작).
- includeLinks
-
boolean
[선택 사항] referenceLinks를 결과에 포함해야 하는지를 지정합니다. 기본값은 false입니다.
- includeStatuses
-
boolean
[선택 사항] 각 ref에 대해 처음 1000개의 커밋 상태를 포함합니다. 기본값은 false입니다.
- includeMyBranches
-
boolean
[선택 사항] 사용자가 소유한 분기, 사용자가 즐겨찾는 분기 및 기본 분기만 포함합니다. 기본값은 false입니다. 필터 매개 변수와 결합할 수 없습니다.
- latestStatusesOnly
-
boolean
[선택 사항] 각 참조에 대한 팁 커밋 상태만 포함하려면 True입니다. 이 옵션을 사용하려면 includeStatuses
true여야 합니다. 기본값은 false입니다.
- peelTags
-
boolean
[선택 사항] 주석이 추가된 태그는 PeeledObjectId 속성을 채웁니다. 기본값은 false입니다.
- filterContains
-
string
[선택 사항] refs(포함)에 적용할 필터입니다.
반환
getRepositories(string, boolean, boolean, boolean)
git 리포지토리를 검색합니다.
function getRepositories(project?: string, includeLinks?: boolean, includeAllUrls?: boolean, includeHidden?: boolean): Promise<GitRepository[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- includeLinks
-
boolean
[선택 사항] 참조 링크를 포함하려면 True입니다. 기본값은 false입니다.
- includeAllUrls
-
boolean
[선택 사항] 모든 원격 URL을 포함하려면 True입니다. 기본값은 false입니다.
- includeHidden
-
boolean
[선택 사항] 숨겨진 리포지토리를 포함하려면 True입니다. 기본값은 false입니다.
반환
Promise<GitRepository[]>
getRepositoriesPaged(string, boolean, boolean, boolean, string, number, string)
이름 및 페이지 매김별로 필터를 사용하여 git 리포지토리를 검색합니다.
function getRepositoriesPaged(projectId: string, includeLinks?: boolean, includeAllUrls?: boolean, includeHidden?: boolean, filterContains?: string, top?: number, continuationToken?: string): Promise<PagedList<GitRepository>>
매개 변수
- projectId
-
string
팀 프로젝트의 ID 또는 이름입니다.
- includeLinks
-
boolean
[선택 사항] 참조 링크를 포함하려면 True입니다. 기본값은 false입니다.
- includeAllUrls
-
boolean
[선택 사항] 모든 원격 URL을 포함하려면 True입니다. 기본값은 false입니다.
- includeHidden
-
boolean
[선택 사항] 숨겨진 리포지토리를 포함하려면 True입니다. 기본값은 false입니다.
- filterContains
-
string
[선택 사항] refs(포함)에 적용할 필터입니다.
- top
-
number
[선택 사항] 반환할 리포지토리의 최대 수입니다. 500보다 클 수 없습니다. 제공되지 않지만 continuationToken인 경우 top은 기본값인 100입니다.
- continuationToken
-
string
페이지 매김에 사용되는 연속 토큰입니다.
반환
Promise<PagedList<GitRepository>>
getRepository(string, string)
git 리포지토리를 검색합니다.
function getRepository(repositoryId: string, project?: string): Promise<GitRepository>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitRepository>
getRepositoryWithParent(string, boolean, string)
git 리포지토리를 검색합니다.
function getRepositoryWithParent(repositoryId: string, includeParent: boolean, project?: string): Promise<GitRepository>
매개 변수
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- includeParent
-
boolean
부모 리포지토리를 포함하려면 True입니다. 인증된 호출에서만 사용할 수 있습니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitRepository>
getRevert(string, number, string)
되돌리기 ID를 사용하여 되돌리기 작업에 대한 정보를 검색합니다.
function getRevert(project: string, revertId: number, repositoryId: string): Promise<GitRevert>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- revertId
-
number
되돌리기 작업의 ID입니다.
- repositoryId
-
string
리포지토리의 ID입니다.
반환
Promise<GitRevert>
getRevertConflict(string, number, number, string)
ID로 되돌리기 충돌을 검색합니다.
function getRevertConflict(repositoryId: string, revertId: number, conflictId: number, project?: string): Promise<GitConflict>
매개 변수
- repositoryId
-
string
- revertId
-
number
- conflictId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflict>
getRevertConflicts(string, number, string, string, number, boolean, boolean, boolean)
되돌리기에서 모든 충돌 검색
function getRevertConflicts(repositoryId: string, revertId: number, project?: string, continuationToken?: string, top?: number, excludeResolved?: boolean, onlyResolved?: boolean, includeObsolete?: boolean): Promise<PagedList<GitConflict>>
매개 변수
- repositoryId
-
string
- revertId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- continuationToken
-
string
- top
-
number
- excludeResolved
-
boolean
- onlyResolved
-
boolean
- includeObsolete
-
boolean
반환
Promise<PagedList<GitConflict>>
getRevertForRefName(string, string, string)
특정 분기에 대한 되돌리기 작업에 대한 정보를 검색합니다.
function getRevertForRefName(project: string, repositoryId: string, refName: string): Promise<GitRevert>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID입니다.
- refName
-
string
되돌리기 작업에 사용되는 GitAsyncRefOperationParameters generatedRefName입니다.
반환
Promise<GitRevert>
getStatuses(string, string, string, number, number, boolean)
Git 커밋과 연결된 상태를 가져옵니다.
function getStatuses(commitId: string, repositoryId: string, project?: string, top?: number, skip?: number, latestOnly?: boolean): Promise<GitStatus[]>
매개 변수
- commitId
-
string
Git 커밋의 ID입니다.
- repositoryId
-
string
리포지토리의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- top
-
number
선택적. 검색할 상태의 수입니다. 기본값은 1000입니다.
- skip
-
number
선택적. 무시할 상태의 수입니다. 기본값은 0입니다. 예를 들어 결과 101-150을 검색하려면 위쪽을 50으로 설정하고 100으로 건너뜁니다.
- latestOnly
-
boolean
플래그는 Context.Name
Context.Genre
그룹화된 최신 상태만 가져올지 여부를 나타냅니다.
반환
Promise<GitStatus[]>
getSuggestions(string, string, boolean)
특정 리포지토리 또는 팀 프로젝트에 대한 끌어오기 요청 제안을 검색합니다.
function getSuggestions(repositoryId: string, project?: string, preferCompareBranch?: boolean): Promise<GitSuggestion[]>
매개 변수
- repositoryId
-
string
git 리포지토리의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- preferCompareBranch
-
boolean
true이면 끌어오기 요청에 대한 대상 분기로 기본 분기보다 비교 분기를 사용하는 것이 좋습니다.
반환
Promise<GitSuggestion[]>
getThreads(string, number, string, number, number)
끌어오기 요청의 모든 스레드를 검색합니다.
function getThreads(repositoryId: string, pullRequestId: number, project?: string, iteration?: number, baseIteration?: number): Promise<GitPullRequestCommentThread[]>
매개 변수
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- iteration
-
number
지정한 경우 이 반복을 diff의 오른쪽으로 사용하여 스레드 위치를 추적합니다.
- baseIteration
-
number
지정한 경우 이 반복을 diff의 왼쪽으로 사용하여 스레드 위치를 추적합니다.
반환
Promise<GitPullRequestCommentThread[]>
getTree(string, string, string, string, boolean, string)
트리 엔드포인트는 지정된 트리 아래에 있는 개체 컬렉션을 반환합니다. 트리는 Git 리포지토리의 폴더입니다.
function getTree(repositoryId: string, sha1: string, project?: string, projectId?: string, recursive?: boolean, fileName?: string): Promise<GitTreeRef>
매개 변수
- repositoryId
-
string
리포지토리 ID입니다.
- sha1
-
string
트리 개체의 SHA1 해시입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- projectId
-
string
프로젝트 ID입니다.
- recursive
-
boolean
재귀적으로 검색합니다. 이 트리 아래에 트리를 포함합니다. 기본값은 false입니다.
- fileName
-
string
.zip 파일이 반환되는 경우 사용할 이름입니다. 기본값은 개체 ID입니다.
반환
Promise<GitTreeRef>
getTreeZip(string, string, string, string, boolean, string)
트리 엔드포인트는 지정된 트리 아래에 있는 개체 컬렉션을 반환합니다. 트리는 Git 리포지토리의 폴더입니다.
function getTreeZip(repositoryId: string, sha1: string, project?: string, projectId?: string, recursive?: boolean, fileName?: string): Promise<ArrayBuffer>
매개 변수
- repositoryId
-
string
리포지토리 ID입니다.
- sha1
-
string
트리 개체의 SHA1 해시입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- projectId
-
string
프로젝트 ID입니다.
- recursive
-
boolean
재귀적으로 검색합니다. 이 트리 아래에 트리를 포함합니다. 기본값은 false입니다.
- fileName
-
string
.zip 파일이 반환되는 경우 사용할 이름입니다. 기본값은 개체 ID입니다.
반환
Promise<ArrayBuffer>
queryImportRequests(string, string, boolean)
리포지토리에 대한 가져오기 요청을 검색합니다.
function queryImportRequests(project: string, repositoryId: string, includeAbandoned?: boolean): Promise<GitImportRequest[]>
매개 변수
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- includeAbandoned
-
boolean
결과에서 중단된 가져오기 요청을 포함하려면 True입니다.
반환
Promise<GitImportRequest[]>
restoreRepositoryFromRecycleBin(GitRecycleBinRepositoryDetails, string, string)
일시 삭제된 Git 리포지토리를 복구합니다. 최근에 삭제된 리포지토리는 하드 삭제되고 복구할 수 없게 되기 전에 일정 기간 동안 일시 삭제 상태로 전환됩니다.
function restoreRepositoryFromRecycleBin(repositoryDetails: GitRecycleBinRepositoryDetails, project: string, repositoryId: string): Promise<GitRepository>
매개 변수
- repositoryDetails
- GitRecycleBinRepositoryDetails
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 ID입니다.
반환
Promise<GitRepository>
setEnableOnCreateHost(boolean)
function setEnableOnCreateHost(enableOnCreateHost: boolean): Promise<void>
매개 변수
- enableOnCreateHost
-
boolean
반환
Promise<void>
setEnableOnCreateProject(string, boolean)
function setEnableOnCreateProject(enableOnCreateProjectId: string, enableOnStatus: boolean): Promise<void>
매개 변수
- enableOnCreateProjectId
-
string
- enableOnStatus
-
boolean
반환
Promise<void>
sharePullRequest(ShareNotificationContext, string, number, string)
받는 사람 집합에 특정 끌어오기 요청에 대한 전자 메일 알림을 보냅니다.
function sharePullRequest(userMessage: ShareNotificationContext, repositoryId: string, pullRequestId: number, project?: string): Promise<void>
매개 변수
- userMessage
- ShareNotificationContext
- repositoryId
-
string
git 리포지토리의 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
updateCherryPickConflict(GitConflict, string, number, number, string)
병합 충돌 해결 업데이트
function updateCherryPickConflict(conflict: GitConflict, repositoryId: string, cherryPickId: number, conflictId: number, project?: string): Promise<GitConflict>
매개 변수
- conflict
- GitConflict
- repositoryId
-
string
- cherryPickId
-
number
- conflictId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflict>
updateCherryPickConflicts(GitConflict[], string, number, string)
여러 병합 충돌 해결 업데이트
function updateCherryPickConflicts(conflictUpdates: GitConflict[], repositoryId: string, cherryPickId: number, project?: string): Promise<GitConflictUpdateResult[]>
매개 변수
- conflictUpdates
- repositoryId
-
string
- cherryPickId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflictUpdateResult[]>
updateComment(Comment, string, number, number, number, string)
끌어오기 요청에서 특정 스레드와 연결된 주석을 업데이트합니다.
function updateComment(comment: Comment, repositoryId: string, pullRequestId: number, threadId: number, commentId: number, project?: string): Promise<Comment>
매개 변수
- comment
- Comment
업데이트해야 하는 주석 콘텐츠입니다. 주석은 최대 150,000자까지 가능합니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
원하는 주석이 있는 스레드의 ID입니다.
- commentId
-
number
업데이트할 주석의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<Comment>
updateEnablementStatus(AdvSecEnablementUpdate[])
리포지토리에 대한 POST 사용 상태입니다.
function updateEnablementStatus(enablementUpdates: AdvSecEnablementUpdate[]): Promise<void>
매개 변수
- enablementUpdates
반환
Promise<void>
updateImportRequest(GitImportRequest, string, string, number)
실패한 가져오기 요청을 다시 시도하거나 중단합니다.
function updateImportRequest(importRequestToUpdate: GitImportRequest, project: string, repositoryId: string, importRequestId: number): Promise<GitImportRequest>
매개 변수
- importRequestToUpdate
- GitImportRequest
가져오기 요청의 업데이트된 버전입니다. 현재 허용되는 유일한 변경은 상태를 대기 중 또는 중단됨으로 설정하는 것입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- importRequestId
-
number
업데이트할 가져오기 요청에 대한 고유 식별자입니다.
반환
Promise<GitImportRequest>
updatePullRequest(GitPullRequest, string, number, string)
끌어오기 요청 업데이트
function updatePullRequest(gitPullRequestToUpdate: GitPullRequest, repositoryId: string, pullRequestId: number, project?: string): Promise<GitPullRequest>
매개 변수
- gitPullRequestToUpdate
- GitPullRequest
업데이트해야 하는 끌어오기 요청 콘텐츠입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
업데이트할 끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequest>
updatePullRequestConflict(GitConflict, string, number, number, string)
병합 충돌 해결 업데이트
function updatePullRequestConflict(conflict: GitConflict, repositoryId: string, pullRequestId: number, conflictId: number, project?: string): Promise<GitConflict>
매개 변수
- conflict
- GitConflict
- repositoryId
-
string
- pullRequestId
-
number
- conflictId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflict>
updatePullRequestConflicts(GitConflict[], string, number, string)
여러 병합 충돌 해결 업데이트
function updatePullRequestConflicts(conflictUpdates: GitConflict[], repositoryId: string, pullRequestId: number, project?: string): Promise<GitConflictUpdateResult[]>
매개 변수
- conflictUpdates
- repositoryId
-
string
- pullRequestId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflictUpdateResult[]>
updatePullRequestIterationStatuses(JsonPatchDocument, string, number, number, string)
끌어오기 요청 반복 상태 컬렉션을 업데이트합니다. 지원되는 작업 유형은 remove
.
function updatePullRequestIterationStatuses(patchDocument: JsonPatchDocument, repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<void>
매개 변수
- patchDocument
- JsonPatchDocument
JSON 패치 형식의 끌어오기 요청 상태에 적용할 작업입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- iterationId
-
number
끌어오기 요청 반복의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
updatePullRequestProperties(JsonPatchDocument, string, number, string)
끌어오기 요청 외부 속성을 만들거나 업데이트합니다. 패치 작업은 add
, replace
또는 remove
수 있습니다.
add
작업의 경우 경로가 비어 있을 수 있습니다. 경로가 비어 있는 경우 값은 키 값 쌍의 목록이어야 합니다.
replace
작업의 경우 경로를 비울 수 없습니다. 경로가 없으면 속성이 컬렉션에 추가됩니다.
remove
작업의 경우 경로를 비울 수 없습니다. 경로가 없으면 아무 작업도 수행되지 않습니다.
function updatePullRequestProperties(patchDocument: JsonPatchDocument, repositoryId: string, pullRequestId: number, project?: string): Promise<any>
매개 변수
- patchDocument
- JsonPatchDocument
JSON 패치 형식으로 추가, 바꾸기 또는 제거할 속성입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<any>
updatePullRequestReviewer(IdentityRefWithVote, string, number, string, string)
검토자 항목을 편집합니다. 이러한 필드는 패치할 수 있습니다. isFlagged, hasDeclined
function updatePullRequestReviewer(reviewer: IdentityRefWithVote, repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise<IdentityRefWithVote>
매개 변수
- reviewer
- IdentityRefWithVote
검토자 데이터입니다.<br/>검토자의 ID가 여기에 포함된 경우 reviewerID 매개 변수와 일치해야 합니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- reviewerId
-
string
검토자의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<IdentityRefWithVote>
updatePullRequestReviewers(IdentityRefWithVote[], string, number, string)
끌어오기 요청에서 여러 검토자의 투표를 다시 설정합니다. 참고: 이 엔드포인트는 투표 업데이트만 지원하지만 필수 검토자(정책 사용) 또는 표시 이름 업데이트는 지원하지 않습니다.
function updatePullRequestReviewers(patchVotes: IdentityRefWithVote[], repositoryId: string, pullRequestId: number, project?: string): Promise<void>
매개 변수
- patchVotes
투표가 0으로 다시 설정되는 검토자의 ID
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
updatePullRequestStatuses(JsonPatchDocument, string, number, string)
끌어오기 요청 상태 컬렉션을 업데이트합니다. 지원되는 작업 유형은 remove
.
function updatePullRequestStatuses(patchDocument: JsonPatchDocument, repositoryId: string, pullRequestId: number, project?: string): Promise<void>
매개 변수
- patchDocument
- JsonPatchDocument
JSON 패치 형식의 끌어오기 요청 상태에 적용할 작업입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<void>
updateRef(GitRefUpdate, string, string, string, string)
분기를 잠그거나 잠금 해제합니다.
function updateRef(newRefInfo: GitRefUpdate, repositoryId: string, filter: string, project?: string, projectId?: string): Promise<GitRef>
매개 변수
- newRefInfo
- GitRefUpdate
수행할 ref 업데이트 작업(잠금/잠금 해제)
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- filter
-
string
잠금/잠금 해제할 분기의 이름입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- projectId
-
string
팀 프로젝트의 ID 또는 이름입니다. 리포지토리에 대한 ID를 지정하는 경우 선택 사항입니다.
반환
Promise<GitRef>
updateRefs(GitRefUpdate[], string, string, string)
refs(분기)를 만들거나 업데이트하거나 삭제합니다.
function updateRefs(refUpdates: GitRefUpdate[], repositoryId: string, project?: string, projectId?: string): Promise<GitRefUpdateResult[]>
매개 변수
- refUpdates
수행할 ref 업데이트 목록
- repositoryId
-
string
리포지토리의 이름 또는 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
- projectId
-
string
팀 프로젝트의 ID 또는 이름입니다. 리포지토리에 대한 ID를 지정하는 경우 선택 사항입니다.
반환
Promise<GitRefUpdateResult[]>
updateRepository(GitRepository, string, string)
Git 리포지토리를 새 리포지토리 이름 또는 새 기본 분기로 업데이트합니다.
function updateRepository(newRepositoryInfo: GitRepository, repositoryId: string, project?: string): Promise<GitRepository>
매개 변수
- newRepositoryInfo
- GitRepository
리포지토리의 새 리포지토리 이름 또는 새 기본 분기 지정
- repositoryId
-
string
리포지토리의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitRepository>
updateRevertConflict(GitConflict, string, number, number, string)
병합 충돌 해결 업데이트
function updateRevertConflict(conflict: GitConflict, repositoryId: string, revertId: number, conflictId: number, project?: string): Promise<GitConflict>
매개 변수
- conflict
- GitConflict
- repositoryId
-
string
- revertId
-
number
- conflictId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflict>
updateRevertConflicts(GitConflict[], string, number, string)
여러 병합 충돌 해결 업데이트
function updateRevertConflicts(conflictUpdates: GitConflict[], repositoryId: string, revertId: number, project?: string): Promise<GitConflictUpdateResult[]>
매개 변수
- conflictUpdates
- repositoryId
-
string
- revertId
-
number
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitConflictUpdateResult[]>
updateThread(GitPullRequestCommentThread, string, number, number, string)
끌어오기 요청에서 스레드를 업데이트합니다.
function updateThread(commentThread: GitPullRequestCommentThread, repositoryId: string, pullRequestId: number, threadId: number, project?: string): Promise<GitPullRequestCommentThread>
매개 변수
- commentThread
- GitPullRequestCommentThread
업데이트해야 하는 스레드 콘텐츠입니다.
- repositoryId
-
string
끌어오기 요청의 대상 분기의 리포지토리 ID입니다.
- pullRequestId
-
number
끌어오기 요청의 ID입니다.
- threadId
-
number
업데이트할 스레드의 ID입니다.
- project
-
string
프로젝트 ID 또는 프로젝트 이름
반환
Promise<GitPullRequestCommentThread>