Merge pull request #15729 from ciprianna/cloudbuild_retry_post

fix: sets the method to POST in reRunWorkflow fetch request.
This commit is contained in:
Patrik Oldsberg
2023-01-17 12:43:46 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-cloudbuild': patch
---
Fixed bug in the CloudbuildClient reRunWorkflow fetch call. The method in the fetch request was not specified and defaulted to a GET. Method is now explicitly set to POST with this change.
@@ -34,6 +34,7 @@ export class CloudbuildClient implements CloudbuildApi {
options.projectId,
)}/builds/${encodeURIComponent(options.runId)}:retry`,
{
method: 'POST',
headers: new Headers({
Accept: '*/*',
Authorization: `Bearer ${await this.getToken()}`,