(options: {
project?: string;
projectId?: string;
projectNumber?: string;
})
| 444 | } |
| 445 | |
| 446 | private async resolveProjectIdentifiers(options: { |
| 447 | project?: string; |
| 448 | projectId?: string; |
| 449 | projectNumber?: string; |
| 450 | }): Promise<void> { |
| 451 | if (options.project?.match(/^\d+$/)) { |
| 452 | await requireAuth(options); |
| 453 | const { projectId, projectNumber } = await getProject(options.project); |
| 454 | options.projectId = projectId; |
| 455 | options.projectNumber = projectNumber; |
| 456 | } else { |
| 457 | options.projectId = options.project; |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | /** |
| 462 | * Returns an async function that calls the pre-action hooks and then the |
no test coverage detected