Closes #757 Support Selective Folder Deployment with List#804
Open
shirasassoon wants to merge 26 commits intomicrosoft:mainfrom
Open
Closes #757 Support Selective Folder Deployment with List#804shirasassoon wants to merge 26 commits intomicrosoft:mainfrom
shirasassoon wants to merge 26 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
added 2 commits
February 17, 2026 10:30
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 selectively deploying specific folders using an inclusion list, alongside improvements to folder-based exclusion and shortcut exclusion features. The documentation, configuration samples, and validation logic have been updated to reflect these new capabilities and clarify usage, especially regarding mutual exclusivity and feature flags for folder-level filtering.
Selective Folder Deployment & Filtering:
folder_path_to_includein the deployment configuration, allowing users to specify an explicit list of folder paths (with hierarchy preservation) to include during publish operations. This is mutually exclusive withfolder_exclude_regexfor the same environment. [1] [2] [3] [4] [5] [6] [7]enable_include_folder,enable_exclude_folder). [1] [2] [3] [4] [5]folder_path_to_includefield.Shortcut and Item Inclusion/Exclusion Improvements:
shortcut_exclude_regexto selectively exclude Lakehouse shortcuts from publishing, with corresponding documentation and validation. [1] [2] [3] [4] [5] [6] [7] [8] [9]items_to_includefor both list and environment mapping forms, with better error messages and documentation. [1] [2] [3] [4]Documentation & Validation Enhancements:
config_deployment.mdandoptional_feature.md. [1] [2] [3] [4] [5] [6]