Skip to content

Commit 88ca599

Browse files
committed
Add order for releases and build history
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 66dcc3e commit 88ca599

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

azure-devops-client/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (c *AzureDevopsClient) ListBuildHistory(project string, minTime time.Time)
140140
c.concurrencyLock()
141141

142142
url := fmt.Sprintf(
143-
"%v/_apis/build/builds?api-version=%v&minTime=%s&$top=%v",
143+
"%v/_apis/build/builds?api-version=%v&minTime=%s&$top=%v&queryOrder=finishTimeDescending",
144144
url.QueryEscape(project),
145145
url.QueryEscape(c.ApiVersion),
146146
url.QueryEscape(minTime.Format(time.RFC3339)),

azure-devops-client/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (c *AzureDevopsClient) ListReleaseHistory(project string, minTime time.Time
179179
c.concurrencyLock()
180180

181181
url := fmt.Sprintf(
182-
"%v/_apis/release/releases?api-version=%v&isDeleted=false&$expand=94&minCreatedTime=%s&$top=%v",
182+
"%v/_apis/release/releases?api-version=%v&isDeleted=false&$expand=94&minCreatedTime=%s&$top=%v&queryOrder=descending",
183183
url.QueryEscape(project),
184184
url.QueryEscape(c.ApiVersion),
185185
url.QueryEscape(minTime.Format(time.RFC3339)),

0 commit comments

Comments
 (0)