-
Notifications
You must be signed in to change notification settings - Fork 16
feat(workspace_git): enhance item resource by adding new attribute #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(workspace_git): enhance item resource by adding new attribute #705
Conversation
Changelog Previewv1.7.1-dev - December 18, 2025π« Changed
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for the allow_override_items parameter to the workspace Git resource, which controls user consent to override incoming items during the Git update process. When not specified or set to false, the update operation will not start if incoming items are present.
- Added
allow_override_itemsas an optional boolean attribute with ForceNew semantics - Integrated the parameter into the
UpdateFromGitAPI call flow - Updated documentation to reflect the new parameter
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| internal/services/workspacegit/schema.go | Adds allow_override_items boolean attribute with RequiresReplace plan modifier |
| internal/services/workspacegit/models.go | Adds field to resource model and passes it to UpdateFromGit API options |
| internal/services/workspacegit/resource_workspace_git.go | Passes the new field value to the UpdateFromGit request |
| docs/resources/workspace_git.md | Documents the new optional parameter with ForceNew behavior |
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Minimum allowed line rate is |
π₯ Pull Request
β What are you trying to address
close #704
Manage Update From Git UpdateOptions through new allow_override_items attribute: https://learn.microsoft.com/en-us/rest/api/fabric/core/git/update-from-git?tabs=HTTP#updateoptions