Closes #757 Support Selective Folder Deployment with List#804
Merged
shirasassoon merged 33 commits intomicrosoft:mainfrom Mar 3, 2026
Merged
Closes #757 Support Selective Folder Deployment with List#804shirasassoon merged 33 commits intomicrosoft:mainfrom
shirasassoon merged 33 commits intomicrosoft:mainfrom
Conversation
…asassoon/fabric-cicd into add_folders_to_include_list
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an experimental capability to selectively publish workspace content by including only specific folder paths (in addition to existing folder exclusion), integrating this into the publish API, config-based deployments, validation, tests, docs, and changelog.
Changes:
- Introduces
enable_include_folderfeature flag andfolder_path_to_includepublish setting/parameter. - Updates publish workflow and workspace folder/item publishing logic to respect inclusion/exclusion controls.
- Extends config validation/utilities, docs, sample config, and tests to cover the new setting.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
src/fabric_cicd/constants.py |
Adds ENABLE_INCLUDE_FOLDER and config schema/settings support for folder_path_to_include. |
src/fabric_cicd/_common/_validate_input.py |
Adds a new validation entry point for folder_path_to_include gated by feature flags. |
src/fabric_cicd/publish.py |
Extends publish_all_items and config-driven deployment to accept/apply folder_path_to_include. |
src/fabric_cicd/fabric_workspace.py |
Implements inclusion/exclusion checks in folder and item publishing paths. |
src/fabric_cicd/_common/_config_validator.py |
Adds config validation for publish.folder_path_to_include and related error messages. |
src/fabric_cicd/_common/_config_utils.py |
Ensures folder_path_to_include is extracted from config for publish operations. |
tests/test_publish.py |
Updates folder-exclude regex expectations and adds a direct publish inclusion test. |
tests/test_deploy_with_config.py |
Adds config extraction/passing tests for folder_path_to_include and adjusts regex examples. |
tests/test_config_validator.py |
Adds validator test coverage for folder_path_to_include and updates expected field counts/messages. |
docs/how_to/optional_feature.md |
Documents the new enable_include_folder flag. |
docs/how_to/config_deployment.md |
Documents the new publish setting and clarifies folder path formatting expectations. |
sample/workspace/config.yml |
Shows commented examples for folder_exclude_regex and folder_path_to_include. |
.changes/unreleased/added-20260210-151850.yaml |
Changelog entry for selective folder deployment via inclusion list. |
…asassoon/fabric-cicd into add_folders_to_include_list
aviatco
reviewed
Feb 16, 2026
aviatco
reviewed
Feb 16, 2026
aviatco
reviewed
Mar 2, 2026
aviatco
approved these changes
Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #757
This pull request introduces support for selective folder deployment using an inclusion list, along with comprehensive documentation updates to clarify configuration options, feature flag usage, and troubleshooting guidance. The changes enhance deployment flexibility and improve the clarity and usability of the configuration-based deployment process.
Selective Deployment Features:
folder_path_to_includesetting in the configuration file, allowing users to deploy only targeted folders. [1] [2] [3] [4] [5]folder_exclude_regexandfolder_path_to_include, provide configuration examples, and explain environment mapping for these options. [1] [2] [3]Feature Flags and Configuration Options:
enable_include_folderandenable_shortcut_exclude, and clarified their use in both publishing and unpublishing operations. [1] [2]General Documentation Improvements:
Examples and Logging:
Troubleshooting and Validation:
Let me know if you’d like a walkthrough of how to use the new selective folder deployment feature or how to set the relevant feature flags!