Add YML templates for version-only changes builds#2
Conversation
Co-authored-by: MuyuanMS <[email protected]>
|
@copilot The only concern I have is this solution causes duplicate code, which makes it harder to maintain the codebase (change to one .yml has to be applied to the other). Just wondering whether there are ways not to generate duplicate code, but somehow reuse the duplicate part between the two .yml files and only differs in static analysis part? |
Co-authored-by: MuyuanMS <[email protected]>
I've addressed the code duplication concern by creating shared core templates:
This approach eliminates duplication while maintaining the same functionality. Now when changes are needed, you only need to update the core template file. Commit: 94e688b Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR adds two new pipeline YAML templates specifically for version-only change PRs, allowing builds to run without static analysis.
Changes Made
Created
WindowsAppSDK-Foundation-PR-VersionOnly.ymlbased onWindowsAppSDK-Foundation-PR.ymlwith:runStaticAnalysisparameter default set tofalse(instead oftrue)Created
ProjectReunion-BuildFoundation-VersionOnly.ymlbased onProjectReunion-BuildFoundation.ymlwith:runApiScanparameter set tofalserunPREFastparameter set tofalsePurpose
These templates will be used for auto-generated PRs that only update dependency versions on a daily basis. Since these types of changes don't require static analysis (which can be time-consuming), these templates provide an optimized build pipeline for such changes.
Usage
Use these templates instead of the regular PR build templates when creating version-only change PRs, to improve build efficiency by skipping unnecessary static analysis steps.
Fixes #1.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.