Open allenjzhang opened 11 months ago
@mikekistler FYI.
Note from Allen: double check with Mike H as he is implementing similar gate checks.
This issue possibly would be a good candidate to be done at the same time as:
@ladonnaq to look into this mapping and the one from Service Tree + Release Planner data
With these labels and in conjunction with TypeSpec, we can easily spot TypeSpec adoption violations for the reviewer and BI later.
@konrad-jamrozik do we have any labeling automation to identify when a PR is TypeSpec vs Swagger? Or how do we correlate the new labels with the type of PR?
@maririos
@konrad-jamrozik do we have any labeling automation to identify when a PR is TypeSpec vs Swagger? Or how do we correlate the new labels with the type of PR?
We do not. But I see @ckairen has implemented Get-TypeSpec-Folders.ps1 and there is some work to make it more accurate:
Also openapi-alps appears to have some logic for finding TypeSpec, e.g. typespecValidations.ts / getChangedTypeSpecPackages
Perhaps we could leverage some of the logic I listed.
@allenjzhang I had a chat with @weshaggard and before starting any implementation work on this issue we would first like to explore a design alternative that decouples the ask in this issue from our spec PR automation infrastructure. Looks like this work could be accomplished with a standalone PowerShell script that leverages the git repo contents and history to determine where and when TypeSpec specs have been added. No need to couple it with our existing automation.
Related work:
Filed relevant issue that does a subsets of items required by this work item:
Currently we lack of insights on the PRs for newly added product and services. I propose we add similar logic to labeller:
new product
. This gets added whenever new folders are created under thespecification
folder in PR. ie.specifications/sphere
new service
. This gets added whenever new folders are created:specifications/[product]
egspecifications/sphere/Sphere.Management
. This is to catch new TypeSpec specsspecifications/[product]\data-plane
. This is to catch new data-plane swaggersspecifications/[product]\resource-manager
This is to catch new ARM swaggersWith these labels and in conjunction with TypeSpec, we can easily spot TypeSpec adoption violations for the reviewer and BI later.