DownloadPullRequestAttachment
Download Pull Request attachment.
Stored Procedures Specific Information
Process of Download PullRequest Attachment
Azure DevOps allows only a small subset of columns to be used in the EXEC query. These columns can typically be used with only = comparison. The available columns for DownloadPullRequestAttachment are ProjectId, RepositoryId, PullRequestId, FileName and FileLocation.
For example:
EXECUTE DownloadPullRequestAttachment ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4', RepositoryId = '123e04e0-6c4c-4675-8636-af6b0bc29d43', PullRequestId = 4, FileName = 'App.png', FileLocation = 'C:\azuredevops'
Input
Name | Type | Required | Description |
ProjectId | String | False | Id of the project. |
RepositoryId | String | True | Id of the repository. |
PullRequestId | Integer | True | Id of the pull request. |
FileName | String | True | Name of the attachment. |
FileLocation | String | False | Location of the file. |
Encoding | String | False | The FileData input encoding type.
使用できる値は次のとおりです。NONE, BASE64 デフォルト値はBASE64です。 |
Result Set Columns
Name | Type | Description |
Status | String | Stored procedure execution status. |
FileData | String | If the FileLocation and FileStream are not provided, this contains the content of the file. |