다음을 통해 공유


Commits - Get Commits Batch

검색 조건과 일치하는 프로젝트에 대한 git 커밋 검색

POST https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/commitsbatch?api-version=7.1-preview.1
POST https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/commitsbatch?$skip={$skip}&$top={$top}&includeStatuses={includeStatuses}&api-version=7.1-preview.1

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
organization
path True

string

Azure DevOps 조직의 이름입니다.

repositoryId
path True

string

리포지토리의 이름 또는 ID입니다.

project
path

string

프로젝트 ID 또는 프로젝트 이름

api-version
query True

string

사용할 API의 버전입니다. 이 버전의 API를 사용하려면 '7.1-preview.1'로 설정해야 합니다.

$skip
query

integer

int32

건너뛸 커밋 수입니다. 값은 3,000,000을 초과할 수 없습니다.

$top
query

integer

int32

반환할 최대 커밋 수입니다. 값은 50,000을 초과할 수 없습니다.

includeStatuses
query

boolean

True이면 추가 커밋 상태 정보를 포함합니다.

요청 본문

Name 형식 Description
$skip

integer

건너뛸 항목 수

$top

integer

검색할 최대 항목 수

author

string

작성자의 별칭 또는 표시 이름

compareVersion

GitVersionDescriptor

ItemVersion이 지정된 경우에만 적용됩니다. 제공된 경우 이 커밋부터 기록을 걷기 시작합니다.

excludeDeletes

boolean

itemPath를 지정한 경우에만 적용됩니다. 지정된 경로의 삭제 항목을 제외할지 여부를 결정합니다.

fromCommitId

string

제공된 경우 필터링에 대한 하한은 사전순으로 커밋됩니다.

fromDate

string

제공된 경우 이 날짜(문자열) 이후에 만든 기록 항목만 포함합니다.

historyMode

GitHistoryMode

사용해야 하는 Git 기록 모드입니다. Ids = null 및 itemPath를 지정한 경우에만 검색 조건에 적용됩니다.

ids

string[]

제공된 경우 가져올 커밋의 정확한 커밋 ID를 지정합니다. 다른 매개 변수와 결합되지 않을 수 있습니다.

includeLinks

boolean

얕은 참조에 _links 필드를 포함할지 여부

includePushData

boolean

푸시 정보를 포함할지 여부

includeUserImageUrl

boolean

커밋자 및 작성자에 대한 이미지 URL을 포함할지 여부

includeWorkItems

boolean

연결된 작업 항목을 포함할지 여부

itemPath

string

검색할 항목의 경로

itemVersion

GitVersionDescriptor

제공된 경우 검색할 커밋 또는 분기를 식별합니다.

showOldestCommitsFirst

boolean

사용하도록 설정하면 이 옵션은 itemVersion 및 compareVersion 매개 변수를 무시합니다.

toCommitId

string

제공된 경우 커밋 필터링을 위한 상한이 사전순으로 커밋됩니다.

toDate

string

제공된 경우 이 날짜(문자열) 이전에 만든 기록 항목만 포함합니다.

user

string

커밋자의 별칭 또는 표시 이름

응답

Name 형식 Description
200 OK

GitCommitRef[]

성공적인 작업

보안

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

Name Description
vso.code 커밋, 변경 집합, 분기 및 기타 버전 제어 아티팩트에 대한 소스 코드 및 메타데이터를 읽을 수 있는 기능을 부여합니다. 또한 서비스 후크를 통해 코드를 검색하고 버전 제어 이벤트에 대한 알림을 받을 수 있는 기능을 부여합니다.

예제

Commits between two versions
Commits by a list of commit IDs

Commits between two versions

Sample Request

POST https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commitsbatch?api-version=7.1-preview.1

{
  "itemVersion": {
    "versionType": "branch",
    "version": "develop"
  },
  "compareVersion": {
    "versionType": "branch",
    "version": "master"
  }
}

Sample Response

{
  "count": 17,
  "value": [
    {
      "commitId": "23d0bc5b128a10056dc68afece360d8a0fabb014",
      "author": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-30T18:10:55Z"
      },
      "committer": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-30T18:10:55Z"
      },
      "comment": "Better description for hello world",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/23d0bc5b128a10056dc68afece360d8a0fabb014",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/23d0bc5b128a10056dc68afece360d8a0fabb014"
    },
    {
      "commitId": "fe17a84cc2dfe0ea3a2202ab4dbac0706058e41f",
      "author": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-30T17:51:09Z"
      },
      "committer": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-30T17:51:09Z"
      },
      "comment": "Better description for hello world",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/fe17a84cc2dfe0ea3a2202ab4dbac0706058e41f",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/fe17a84cc2dfe0ea3a2202ab4dbac0706058e41f"
    },
    {
      "commitId": "0360c963d7d86d040e9c33bba836feab14da4ad3",
      "author": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-10T19:42:13Z"
      },
      "committer": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-10T19:42:13Z"
      },
      "comment": "Fix for hello world class",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/0360c963d7d86d040e9c33bba836feab14da4ad3",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/0360c963d7d86d040e9c33bba836feab14da4ad3"
    },
    {
      "commitId": "097d82b8aeabe493bf4c3553d320ae2529bba591",
      "author": {
        "name": "Chuck Reinhart",
        "email": "fabrikamfiber3@hotmail.com",
        "date": "2014-06-09T21:43:25Z"
      },
      "committer": {
        "name": "Chuck Reinhart",
        "email": "fabrikamfiber3@hotmail.com",
        "date": "2014-06-09T21:43:25Z"
      },
      "comment": "fix registration page",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/097d82b8aeabe493bf4c3553d320ae2529bba591",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/097d82b8aeabe493bf4c3553d320ae2529bba591"
    },
    {
      "commitId": "33b55f7cb7e7e245323987634f960cf4a6e6bc74",
      "author": {
        "name": "Will Smythe",
        "email": "wismythe@microsoft.com",
        "date": "2014-05-02T19:17:05Z"
      },
      "committer": {
        "name": "Will Smythe",
        "email": "wismythe@microsoft.com",
        "date": "2014-05-02T19:17:05Z"
      },
      "comment": "Fixed bug in web.config file",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/33b55f7cb7e7e245323987634f960cf4a6e6bc74",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/33b55f7cb7e7e245323987634f960cf4a6e6bc74"
    },
    {
      "commitId": "aad331d8d3b131fa9ae03cf5e53965b51942618a",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-04-14T21:34:52Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-04-14T21:34:52Z"
      },
      "comment": "Fixed bug for address validation.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/aad331d8d3b131fa9ae03cf5e53965b51942618a",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/aad331d8d3b131fa9ae03cf5e53965b51942618a"
    },
    {
      "commitId": "7c18355d8c2d946c5e1ce7a56f49653854445a1a",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-28T17:05:58Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-28T17:05:58Z"
      },
      "comment": "Added validation logic.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/7c18355d8c2d946c5e1ce7a56f49653854445a1a",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/7c18355d8c2d946c5e1ce7a56f49653854445a1a"
    },
    {
      "commitId": "cdaeef70a358ede7b4dc7b4a089f3853f37a6d2c",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-27T19:51:11Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-27T19:51:11Z"
      },
      "comment": "Added validation logic for zip code.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/cdaeef70a358ede7b4dc7b4a089f3853f37a6d2c",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/cdaeef70a358ede7b4dc7b4a089f3853f37a6d2c"
    },
    {
      "commitId": "ef837766c5eb3ae81a4c663d36bf95a8aed91312",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T20:25:39Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T20:25:39Z"
      },
      "comment": "Add validation code for zip code values.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/ef837766c5eb3ae81a4c663d36bf95a8aed91312",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/ef837766c5eb3ae81a4c663d36bf95a8aed91312"
    },
    {
      "commitId": "bd73638408daff89bcdac549a5a3396c9a7ce9dd",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T18:56:21Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T18:56:21Z"
      },
      "comment": "Added validation logic for zip code values.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/bd73638408daff89bcdac549a5a3396c9a7ce9dd",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/bd73638408daff89bcdac549a5a3396c9a7ce9dd"
    },
    {
      "commitId": "03bea1cebffa5726da0e3c0bc1487796d0dd0ee8",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T18:42:24Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T18:42:24Z"
      },
      "comment": "Added validation logic for address values.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/03bea1cebffa5726da0e3c0bc1487796d0dd0ee8",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/03bea1cebffa5726da0e3c0bc1487796d0dd0ee8"
    },
    {
      "commitId": "c093714168cdd190c1e171a803e996d685454352",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T18:37:32Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T18:37:32Z"
      },
      "comment": "Added validation logic for zip code values.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/c093714168cdd190c1e171a803e996d685454352",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/c093714168cdd190c1e171a803e996d685454352"
    },
    {
      "commitId": "3d203ea73427cec36b77a3a5a2e4f1f8ba7de170",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T18:00:14Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T18:00:14Z"
      },
      "comment": "Added code.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/3d203ea73427cec36b77a3a5a2e4f1f8ba7de170",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/3d203ea73427cec36b77a3a5a2e4f1f8ba7de170"
    },
    {
      "commitId": "1eea03b2ad9f14a5e7297c1307e36c980eb910ea",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T16:17:11Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-26T16:17:11Z"
      },
      "comment": "Added code.",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/1eea03b2ad9f14a5e7297c1307e36c980eb910ea",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/1eea03b2ad9f14a5e7297c1307e36c980eb910ea"
    },
    {
      "commitId": "c40b5ceb9c77096b9f59e6a9193dae527bda79d9",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-10T20:54:10Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-10T20:54:10Z"
      },
      "comment": "Added method for submitting new customer addrress.",
      "changeCounts": {
        "Edit": 2
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/c40b5ceb9c77096b9f59e6a9193dae527bda79d9",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/c40b5ceb9c77096b9f59e6a9193dae527bda79d9"
    },
    {
      "commitId": "6ff5e8f6256cc58aa062dbb1e096c1e3b3435ebe",
      "author": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-10T20:50:08Z"
      },
      "committer": {
        "name": "Howie Hilliker",
        "email": "hhill@microsoft.com",
        "date": "2014-03-10T20:50:08Z"
      },
      "comment": "Adding customer address module project",
      "changeCounts": {
        "Add": 12
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/6ff5e8f6256cc58aa062dbb1e096c1e3b3435ebe",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/6ff5e8f6256cc58aa062dbb1e096c1e3b3435ebe"
    },
    {
      "commitId": "03b1b831e41df536d836c95e2f68a42db4f3e0db",
      "author": {
        "name": "Chuck Reinhart",
        "email": "fabrikamfiber3@hotmail.com",
        "date": "2014-02-10T21:52:47Z"
      },
      "committer": {
        "name": "Chuck Reinhart",
        "email": "fabrikamfiber3@hotmail.com",
        "date": "2014-02-10T21:52:47Z"
      },
      "comment": "Add Hello World to TFS",
      "changeCounts": {
        "Add": 5
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/03b1b831e41df536d836c95e2f68a42db4f3e0db",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/03b1b831e41df536d836c95e2f68a42db4f3e0db"
    }
  ]
}

Commits by a list of commit IDs

Sample Request

POST https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commitsbatch?api-version=7.1-preview.1

{
  "ids": [
    "23d0bc5b128a10056dc68afece360d8a0fabb014",
    "fe17a84cc2dfe0ea3a2202ab4dbac0706058e41f"
  ]
}

Sample Response

{
  "count": 2,
  "value": [
    {
      "commitId": "23d0bc5b128a10056dc68afece360d8a0fabb014",
      "author": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-30T18:10:55Z"
      },
      "committer": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-30T18:10:55Z"
      },
      "comment": "Better description for hello world",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/23d0bc5b128a10056dc68afece360d8a0fabb014",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/23d0bc5b128a10056dc68afece360d8a0fabb014"
    },
    {
      "commitId": "fe17a84cc2dfe0ea3a2202ab4dbac0706058e41f",
      "author": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-30T17:51:09Z"
      },
      "committer": {
        "name": "Norman Paulk",
        "email": "Fabrikamfiber16@hotmail.com",
        "date": "2014-06-30T17:51:09Z"
      },
      "comment": "Better description for hello world",
      "changeCounts": {
        "Edit": 1
      },
      "url": "https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commits/fe17a84cc2dfe0ea3a2202ab4dbac0706058e41f",
      "remoteUrl": "https://dev.azure.com/fabrikam/_git/Fabrikam-Fiber-Git/commit/fe17a84cc2dfe0ea3a2202ab4dbac0706058e41f"
    }
  ]
}

정의

Name Description
ChangeCountDictionary
GitChange
GitCommitRef

Git 커밋 및 연결된 메타데이터를 설명하는 속성을 제공합니다.

GitHistoryMode

사용해야 하는 Git 기록 모드입니다. Ids = null 및 itemPath가 지정된 경우에만 검색 조건에 적용됩니다.

GitPushRef
GitQueryCommitsCriteria
GitStatus

이 클래스에는 상태 게시하는 서비스/확장의 메타데이터가 포함됩니다.

GitStatusContext

상태 고유하게 식별하는 상태 컨텍스트입니다.

GitStatusState

상태 상태입니다.

GitTemplate
GitUserDate

Git 작업의 사용자 정보 및 날짜입니다.

GitVersionDescriptor
GitVersionOptions

버전 옵션 - 버전에 대한 추가 한정자 지정(예: 이전)

GitVersionType

버전 유형(분기, 태그 또는 커밋). ID가 해석되는 방법을 결정합니다.

IdentityRef
ItemContent
ItemContentType
ReferenceLinks

REST 참조 링크의 컬렉션을 나타내는 클래스입니다.

ResourceRef
VersionControlChangeType

항목에 대해 변경된 형식입니다.

ChangeCountDictionary

GitChange

Name 형식 Description
changeId

integer

변경 그룹 내의 변경 내용 ID입니다.

changeType

VersionControlChangeType

항목에 대해 변경된 형식입니다.

item

string

현재 버전입니다.

newContent

ItemContent

변경 후 항목의 콘텐츠입니다.

newContentTemplate

GitTemplate

새 변경 내용을 푸시할 때 사용할 새 콘텐츠 템플릿입니다.

originalPath

string

현재 경로와 다른 경우 항목의 원래 경로입니다.

sourceServerItem

string

서버에 있는 항목의 경로입니다.

url

string

항목을 검색할 URL입니다.

GitCommitRef

Git 커밋 및 연결된 메타데이터를 설명하는 속성을 제공합니다.

Name 형식 Description
_links

ReferenceLinks

관련 REST 참조 링크의 컬렉션입니다.

author

GitUserDate

커밋의 작성자입니다.

changeCounts

ChangeCountDictionary

커밋에 포함된 변경 형식(편집, 삭제 등)의 수입니다.

changes

GitChange[]

커밋에 포함된 변경 내용의 열거형입니다.

comment

string

커밋의 주석 또는 메시지입니다.

commentTruncated

boolean

전체 Git 커밋 주석 메시지에서 주석이 잘렸는지를 나타냅니다.

commitId

string

커밋의 ID(SHA-1)입니다.

commitTooManyChanges

boolean

커밋에 너무 많은 변경 내용이 표시됨을 나타냅니다.

committer

GitUserDate

커밋의 커밋자입니다.

parents

string[]

이 커밋에 대한 부모 커밋 ID의 열거형입니다.

push

GitPushRef

이 커밋과 연결된 푸시입니다.

remoteUrl

string

커밋에 대한 원격 URL 경로입니다.

statuses

GitStatus[]

추가 정보를 커밋에 연결할 수 있는 서비스 및 확장의 상태 메타데이터 목록입니다.

url

string

이 리소스에 대한 REST URL입니다.

workItems

ResourceRef[]

이 커밋과 연결된 작업 영역 목록입니다.

GitHistoryMode

사용해야 하는 Git 기록 모드입니다. Ids = null 및 itemPath가 지정된 경우에만 검색 조건에 적용됩니다.

Name 형식 Description
firstParent

string

에서 사용하는 기록 모드 git log --first-parent

fullHistory

string

에서 사용하는 기록 모드 git log --full-history

fullHistorySimplifyMerges

string

에서 사용하는 기록 모드 git log --full-history --simplify-merges

simplifiedHistory

string

에서 사용하는 기록 모드입니다 git log. 이것이 기본값입니다.

GitPushRef

Name 형식 Description
_links

ReferenceLinks

REST 참조 링크의 컬렉션을 나타내는 클래스입니다.

date

string

pushId

integer

pushedBy

IdentityRef

url

string

GitQueryCommitsCriteria

Name 형식 Description
$skip

integer

건너뛸 항목 수

$top

integer

검색할 최대 항목 수

author

string

작성자의 별칭 또는 표시 이름

compareVersion

GitVersionDescriptor

ItemVersion이 지정된 경우에만 적용됩니다. 제공된 경우 이 커밋부터 기록을 걷기 시작합니다.

excludeDeletes

boolean

itemPath가 지정된 경우에만 적용됩니다. 이렇게 하면 지정된 경로의 삭제 항목을 제외할지 여부가 결정됩니다.

fromCommitId

string

제공된 경우 필터링에 대한 하한은 사전순으로 커밋됩니다.

fromDate

string

제공된 경우 이 날짜 이후에 만든 기록 항목만 포함합니다(문자열).

historyMode

GitHistoryMode

사용해야 하는 Git 기록 모드입니다. Ids = null 및 itemPath가 지정된 경우에만 검색 조건에 적용됩니다.

ids

string[]

제공된 경우 가져올 커밋의 정확한 커밋 ID를 지정합니다. 다른 매개 변수와 결합되지 않을 수 있습니다.

includeLinks

boolean

단순 참조에 _links 필드를 포함할지 여부

includePushData

boolean

푸시 정보를 포함할지 여부

includeUserImageUrl

boolean

커밋자와 작성자에 대한 이미지 URL을 포함할지 여부

includeWorkItems

boolean

연결된 작업 항목을 포함할지 여부

itemPath

string

아래에서 검색할 항목의 경로

itemVersion

GitVersionDescriptor

제공된 경우 검색할 커밋 또는 분기를 식별합니다.

showOldestCommitsFirst

boolean

사용하도록 설정하면 이 옵션은 itemVersion 및 compareVersion 매개 변수를 무시합니다.

toCommitId

string

제공된 경우 필터링을 위한 상한이 사전순으로 커밋됩니다.

toDate

string

제공된 경우 이 날짜(문자열) 이전에 만든 기록 항목만 포함합니다.

user

string

커밋자의 별칭 또는 표시 이름

GitStatus

이 클래스에는 상태 게시하는 서비스/확장의 메타데이터가 포함됩니다.

Name 형식 Description
_links

ReferenceLinks

참조 링크.

context

GitStatusContext

상태 컨텍스트입니다.

createdBy

IdentityRef

상태 만든 ID입니다.

creationDate

string

상태 생성 날짜 및 시간입니다.

description

string

상태 설명입니다. 일반적으로 상태 현재 상태를 설명합니다.

id

integer

상태 식별자입니다.

state

GitStatusState

상태 상태입니다.

targetUrl

string

상태 세부 정보가 포함된 URL입니다.

updatedDate

string

상태 마지막 업데이트 날짜 및 시간입니다.

GitStatusContext

상태 고유하게 식별하는 상태 컨텍스트입니다.

Name 형식 Description
genre

string

상태 장르. 일반적으로 상태 생성하는 서비스/도구의 이름은 비어 있을 수 있습니다.

name

string

상태 이름 식별자는 null이거나 비워 둘 수 없습니다.

GitStatusState

상태 상태입니다.

Name 형식 Description
error

string

오류가 있는 상태입니다.

failed

string

상태가 실패했습니다.

notApplicable

string

상태는 대상 개체에 적용되지 않습니다.

notSet

string

상태 상태가 설정되지 않았습니다. 기본 상태입니다.

pending

string

보류 중인 상태입니다.

succeeded

string

상태가 성공했습니다.

GitTemplate

Name 형식 Description
name

string

템플릿의 이름

type

string

템플릿 유형

GitUserDate

Git 작업의 사용자 정보 및 날짜입니다.

Name 형식 Description
date

string

Git 작업의 날짜입니다.

email

string

Git 작업을 수행하는 사용자의 Email 주소입니다.

imageUrl

string

사용자의 아바타 URL입니다.

name

string

Git 작업을 수행하는 사용자의 이름입니다.

GitVersionDescriptor

Name 형식 Description
version

string

버전 문자열 식별자(태그/분기 이름, 커밋의 SHA1)

versionOptions

GitVersionOptions

버전 옵션 - 버전에 대한 추가 한정자 지정(예: 이전)

versionType

GitVersionType

버전 유형(분기, 태그 또는 커밋). ID가 해석되는 방법을 결정합니다.

GitVersionOptions

버전 옵션 - 버전에 대한 추가 한정자 지정(예: 이전)

Name 형식 Description
firstParent

string

커밋의 첫 번째 부모(HEAD^)

none

string

지정되지 않음

previousChange

string

현재 버전 이전에 변경된 항목을 커밋합니다.

GitVersionType

버전 유형(분기, 태그 또는 커밋). ID가 해석되는 방법을 결정합니다.

Name 형식 Description
branch

string

버전을 분기 이름으로 해석

commit

string

버전을 SHA1(커밋 ID)으로 해석

tag

string

버전을 태그 이름으로 해석

IdentityRef

Name 형식 Description
_links

ReferenceLinks

이 필드에는 그래프 제목에 대한 0개 이상의 흥미로운 링크가 포함되어 있습니다. 이러한 링크를 호출하여 이 그래프 제목에 대한 추가 관계 또는 자세한 정보를 얻을 수 있습니다.

descriptor

string

설명자는 시스템이 실행되는 동안 그래프 제목을 참조하는 기본 방법입니다. 이 필드는 계정과 조직 모두에서 동일한 그래프 제목을 고유하게 식별합니다.

directoryAlias

string

사용되지 않음 - IdentityRef "_links" 사전의 "자체" 항목에서 참조된 Graph 사용자를 쿼리하여 검색할 수 있습니다.

displayName

string

그래프 주체의 고유하지 않은 표시 이름입니다. 이 필드를 변경하려면 원본 공급자에서 해당 값을 변경해야 합니다.

id

string

imageUrl

string

사용되지 않음 - IdentityRef "_links" 사전의 "아바타" 항목에서 사용할 수 있습니다.

inactive

boolean

사용되지 않음 - GraphUser "_links" 사전의 "membershipState" 항목에서 참조되는 Graph 멤버 자격 상태를 쿼리하여 검색할 수 있습니다.

isAadIdentity

boolean

사용되지 않음 - 설명자의 주체 형식(Descriptor.IsAadUserType/Descriptor.IsAadGroupType)에서 유추할 수 있습니다.

isContainer

boolean

사용되지 않음 - 설명자의 주체 형식에서 유추할 수 있음(Descriptor.IsGroupType)

isDeletedInOrigin

boolean

profileUrl

string

사용되지 않음 - ToIdentityRef의 대부분의 기존 구현에서 사용되지 않음

uniqueName

string

사용되지 않음 - 대신 Domain+PrincipalName 사용

url

string

이 URL은 이 그래프 주체의 원본 리소스에 대한 전체 경로입니다.

ItemContent

Name 형식 Description
content

string

contentType

ItemContentType

ItemContentType

Name 형식 Description
base64Encoded

string

rawText

string

REST 참조 링크의 컬렉션을 나타내는 클래스입니다.

Name 형식 Description
links

object

링크의 읽기 전용 보기입니다. 참조 링크는 읽기 전용이므로 읽기 전용으로만 노출하려고 합니다.

ResourceRef

Name 형식 Description
id

string

url

string

VersionControlChangeType

항목에 대해 변경된 형식입니다.

Name 형식 Description
add

string

all

string

branch

string

delete

string

edit

string

encoding

string

lock

string

merge

string

none

string

property

string

rename

string

rollback

string

sourceRename

string

targetRename

string

undelete

string