Skip to content

Commit bdc47c8

Browse files
authored
fix: Issue with change properties (#33)
Signed-off-by: Thor Anker Kvisgård Lange <[email protected]>
1 parent d598eba commit bdc47c8

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

bitbucket/projects_repos_commits.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ const (
9191
)
9292

9393
type Change struct {
94-
ContentId string `json:"contentId"`
95-
Path ChangePath `json:"path"`
96-
Executable bool `json:"executable"`
97-
Unchanged int `json:"percentUnchanged"`
98-
Type ChangeType `json:"type"`
99-
NodeType ChangeNodeType `json:"nodeType"`
100-
Properties map[string]string `json:"properties"`
94+
ContentId string `json:"contentId"`
95+
Path ChangePath `json:"path"`
96+
Executable bool `json:"executable"`
97+
Unchanged int `json:"percentUnchanged"`
98+
Type ChangeType `json:"type"`
99+
NodeType ChangeNodeType `json:"nodeType"`
100+
Properties map[string]any `json:"properties"`
101101
}
102102

103103
type ChangePath struct {

bitbucket/projects_repos_prs_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,9 @@ const listPullRequestChangesResponse = `
443443
"self": [null]
444444
},
445445
"properties": {
446-
"gitChangeType": "MODIFY"
446+
"orphanedComments": 0,
447+
"gitChangeType": "MODIFY",
448+
"activeComments": 1
447449
}
448450
},
449451
{

0 commit comments

Comments
 (0)