( org: string, projectName: string, authToken: string, deploymentId: number, url: string )
| 64 | } |
| 65 | |
| 66 | export async function promoteDeployment( |
| 67 | org: string, |
| 68 | projectName: string, |
| 69 | authToken: string, |
| 70 | deploymentId: number, |
| 71 | url: string |
| 72 | ): Promise<string> { |
| 73 | try { |
| 74 | await getAxiosInstance(url, authToken).post( |
| 75 | `subqueries/${buildProjectKey(org, projectName)}/deployments/${deploymentId}/release` |
| 76 | ); |
| 77 | return `${deploymentId}`; |
| 78 | } catch (e) { |
| 79 | throw errorHandle(e, 'Failed to promote project:'); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | export async function deleteDeployment( |
| 84 | org: string, |
no test coverage detected