[PR Workflow] Add TypeSpec
label if appropriate files are changed
#7353
Labels
Central-EngSys
This issue is owned by the Engineering System team.
openapi-alps
Items pertaining to https://devdiv.visualstudio.com/DevDiv/_git/openapi-alps/
Spec PR Tools
Tooling that runs in azure-rest-api-specs repo.
As in title. We need this for several reasons, including:
Implementation-wise, we want to implement this in openapi-alps PR summary task (recent example PR touching relevant code files), following rules as expressed in this PR:
Note that the above-given PR doesn't work as expected because the
filesMatchPattern
selector requires for all files to match the pattern [1]. We want to ad the label when any files match the pattern.One situation to consider is: what if given PR has both OpenAPI specs created by hand, and also generated from TypeSpec? In such case we also add the
TypeSpec
label. The assumption here is that such cases should be very rare and can be handled manually, while automation can approximate such PR to being TypeSpec-only PRs.Related work:
[1]:
source of
filesMatchPattern
doc for
filesMatchPattern
issue we filed
The text was updated successfully, but these errors were encountered: