-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PR Workflow] Use more labels for new TypeSpec identification #7216
Comments
@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 |
@konrad-jamrozik do we have any labeling automation to identify when a PR is TypeSpec vs Swagger? |
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. |
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.
The text was updated successfully, but these errors were encountered: