( org: string, projectName: string, authToken: string, deploymentId: number, url: string )
| 81 | } |
| 82 | |
| 83 | export async function deleteDeployment( |
| 84 | org: string, |
| 85 | projectName: string, |
| 86 | authToken: string, |
| 87 | deploymentId: number, |
| 88 | url: string |
| 89 | ): Promise<string> { |
| 90 | try { |
| 91 | await getAxiosInstance(url, authToken).delete( |
| 92 | `subqueries/${buildProjectKey(org, projectName)}/deployments/${deploymentId}` |
| 93 | ); |
| 94 | return `${deploymentId}`; |
| 95 | } catch (e) { |
| 96 | throw errorHandle(e, 'Failed to delete deployment:'); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | export async function deploymentStatus( |
| 101 | org: string, |
no test coverage detected