You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eng/tools/azure-sdk-tools/azpysdk/apistub.py
+53-19Lines changed: 53 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -69,12 +69,30 @@ def register(
69
69
action="store_true",
70
70
help="Generate api.md from the JSON token file using Export-APIViewMarkdown.ps1. Output directory for api.md is the same as the generated token file.",
71
71
)
72
+
p.add_argument(
73
+
"--extract-metadata",
74
+
dest="extract_metadata",
75
+
default=False,
76
+
action="store_true",
77
+
help="Extract language-specific metadata from generated api.md into API.metadata.yml and remove metadata header from api.md.",
78
+
)
79
+
p.add_argument(
80
+
"--install-deps",
81
+
dest="install_deps",
82
+
default=False,
83
+
action="store_true",
84
+
help="Install dev requirements and apiview dependencies before running. Skipped by default for faster local iteration.",
Also writes `mismatch_count=<n>`, `missing_count=<n>`, and `issue_count=<n>` to `GITHUB_OUTPUT`.
62
64
65
+
`API.metadata.yml` is not part of this diff check.
66
+
63
67
### `create_api_review_pr.js` and adapters
64
68
65
69
API review PR creation now uses a shared JavaScript orchestrator with a language adapter boundary:
@@ -96,4 +100,4 @@ Common variables include:
96
100
3.`find_affected.js` determines which packages were touched.
97
101
4.`regenerate.js` rebuilds `API.md` for those packages.
98
102
5.`find_mismatches.js` records any `API.md` drift, including missing or untracked `API.md` files.
99
-
6. If drift is found, the workflow fails and prints the affected packages plus the `azpysdk apistub --md <package-name>` command to regenerate each `API.md` file locally.
103
+
6. If drift is found, the workflow fails and prints the affected packages plus the `azpysdk apistub --md --extract-metadata <package-name>` command to regenerate each `API.md` file locally.
0 commit comments