Skip to content

ci: limit npm APIScan to main and release branches - #1961

Closed
Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
mainfrom
agents/fix-npm-skipapiscan-mechanism
Closed

Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
mainfrom
agents/fix-npm-skipapiscan-mechanism

Conversation

@dmitrivMS

Copy link
Copy Markdown
Contributor

The shared npm template excludes Build.Reason == PullRequest, but a manually queued PR head has reason Manual. Set the supported skipAPIScan option on all seven package entries based on Build.SourceBranch. Only refs/heads/main and refs/heads/release/* remain eligible for APIScan; the template's existing PR guard still applies.

Validation: evaluated the parsed YAML against 10 source-ref/reason combinations for each package, including manual PR head/merge, feature, main and release builds. All 70 checks passed. Compared the remaining YAML with main: triggers, package validation and publishing settings are unchanged. No live Azure run was queued. npm run compile could not start because tsc was missing, and dependency restoration was blocked by npm registry authentication (E401).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS

Copy link
Copy Markdown
Contributor Author

Closing without merging: main already sets pr: none, and the shared npm template omits APIScan when Build.Reason is PullRequest. A manual run on the same PR head or merge ref is intentionally eligible to scan. The branch filter in this draft would suppress those runs, so no change is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant