Skip to content

Commit 4999e60

Browse files
authored
Adding repository pointer for parent to go-bitbucket (#123)
The REST api for bitbucket optionally produces json that points to the parent of a given repo (if it exists as a fork of another repo). It would be really helpful to encode that information in the go api. This patch does that Signed-off-by: Neil horman <[email protected]>
1 parent de5eb36 commit 4999e60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

repository.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ type Repository struct {
3737
Type string
3838
Owner map[string]interface{}
3939
Links map[string]interface{}
40+
Parent *Repository
4041
}
4142

4243
type RepositoryFile struct {

0 commit comments

Comments
 (0)