( org: string, projectName: string, authToken: string, deployID: number, url: string )
| 98 | } |
| 99 | |
| 100 | export async function deploymentStatus( |
| 101 | org: string, |
| 102 | projectName: string, |
| 103 | authToken: string, |
| 104 | deployID: number, |
| 105 | url: string |
| 106 | ): Promise<string> { |
| 107 | try { |
| 108 | const res = await getAxiosInstance(url, authToken).get<{status: string}>( |
| 109 | `subqueries/${buildProjectKey(org, projectName)}/deployments/${deployID}/status` |
| 110 | ); |
| 111 | return `${res.data.status}`; |
| 112 | } catch (e) { |
| 113 | throw errorHandle(e, 'Failed to get deployment status:'); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | export async function projectsInfo( |
| 118 | authToken: string, |
no test coverage detected