-
Notifications
You must be signed in to change notification settings - Fork 281
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
Added the resource for git branch lock azuredevops_git_repository_branch_lock #1289
base: main
Are you sure you want to change the base?
Added the resource for git branch lock azuredevops_git_repository_branch_lock #1289
Conversation
@microsoft-github-policy-service agree |
Type: schema.TypeBool, | ||
Required: true, | ||
ForceNew: true, | ||
Default: true, |
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.
Required
property cannot have default valuesis_locked
should be updateable
|
||
## Timeouts | ||
|
||
The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions: |
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.
The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions: | |
The `timeouts` block allows you to specify [timeouts](https://developer.hashicorp.com/terraform/language/resources/syntax#operation-timeouts) for certain actions: |
* `read` - (Defaults to 5 minutes) Used when retrieving the Git Repository Branch Lock. | ||
* `delete` - (Defaults to 5 minutes) Used when deleting the Git Repository Branch Lock. | ||
|
||
## Import |
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.
This resource does not support import
Filter: converter.String(strings.TrimPrefix(branchRef, "refs/")), | ||
}) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("Error updating branch lock: %v", err)) |
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.
return diag.FromErr(fmt.Errorf("Error updating branch lock: %v", err)) | |
return diag.FromErr(fmt.Errorf(" Updating branch lock: %v", err)) |
d.SetId("") | ||
return nil | ||
} | ||
return diag.FromErr(fmt.Errorf("Error reading branch ref: %v", err)) |
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.
return diag.FromErr(fmt.Errorf("Error reading branch ref: %v", err)) | |
return diag.FromErr(fmt.Errorf(" Reading branch ref: %v", err)) |
Filter: converter.String(strings.TrimPrefix(branchRef, "refs/")), | ||
}) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("Error getting branch ref: %v", err)) |
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.
return diag.FromErr(fmt.Errorf("Error getting branch ref: %v", err)) | |
return diag.FromErr(fmt.Errorf(" Getting branch ref: %v", err)) |
Filter: converter.String(strings.TrimPrefix(branchRef, "refs/")), | ||
}) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("Error unlocking branch: %v", err)) |
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.
return diag.FromErr(fmt.Errorf("Error unlocking branch: %v", err)) | |
return diag.FromErr(fmt.Errorf(" Unlocking branch: %+v", err)) |
All Submissions:
What about the current behavior has changed?
Does this introduce a change to
go.mod
,go.sum
orvendor/
?Does this introduce a breaking change?