Skip to content

ci: limit publish APIScan to main and release branches - #1021

Closed
Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
mainfrom
agents/fix-node-pty-scan-issues
Closed

Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
mainfrom
agents/fix-node-pty-scan-issues

Conversation

@dmitrivMS

Copy link
Copy Markdown
Contributor

pr: none disables the PR trigger, but does not stop someone from manually queuing the publish pipeline on a feature branch. Set the npm template's package-level skipAPIScan flag from the full source ref so that only main and release/* branches retain APIScan. The template independently excludes PR builds. No trigger, test, packaging, approval, or beta/stable publish settings change.

Validation: evaluated the package expression together with the shared template's job-inclusion expression across ten cases. CI and manual main/release builds retain the job; PR validation, manual PR/feature refs, a release lookalike branch, and a version tag omit it. npm run build and git diff --check passed. No Azure publish run was queued.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added bug Issue identified by VS Code Team member as probable bug debt Code quality issues labels Nov 27, 2026
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added this to the 1.149.0 milestone Nov 27, 2026
@dmitrivMS

Copy link
Copy Markdown
Contributor Author

Closing without merging: main already disables automatic PR triggers with pr: none, and the shared npm template omits APIScan when Build.Reason is PullRequest. A manual Azure DevOps run on a feature branch is not a PR check. This draft would suppress that scan and change non-PR behavior unnecessarily.

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

Labels

bug Issue identified by VS Code Team member as probable bug debt Code quality issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant