Skip to content

Commit

Permalink
Merge pull request #218 from SamuZad/master
Browse files Browse the repository at this point in the history
Use more consistent endpoint for project branching models
  • Loading branch information
DrFaust92 authored Nov 9, 2024
2 parents f9f0091 + 7cbf383 commit 1ba1821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitbucket/resource_project_branching_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func resourceProjectBranchingModelsRead(ctx context.Context, d *schema.ResourceD
if err != nil {
return diag.FromErr(err)
}
branchingModelsReq, _ := client.Get(fmt.Sprintf("2.0/workspaces/%s/projects/%s/branching-model", workspace, repo))
branchingModelsReq, _ := client.Get(fmt.Sprintf("2.0/workspaces/%s/projects/%s/branching-model/settings", workspace, repo))

if branchingModelsReq.StatusCode == http.StatusNotFound {
log.Printf("[WARN] Project Branching Model (%s) not found, removing from state", d.Id())
Expand Down

0 comments on commit 1ba1821

Please sign in to comment.