Skip to content

Commit e15a2ca

Browse files
committed
Update field names used in the Branches() function
1 parent fdc8abb commit e15a2ca

File tree

6 files changed

+73
-11
lines changed

6 files changed

+73
-11
lines changed

dbhub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ func (c Connection) Branches(dbowner, dbname string) (branches map[string]com.Br
4949
err = sendRequestJSON(queryUrl, data, &response)
5050

5151
// Extract information for return values
52-
branches = response.Entries
53-
defaultBranch = response.Default
52+
branches = response.Branches
53+
defaultBranch = response.DefaultBranch
5454
return
5555
}
5656

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ replace (
1010
github.com/Sirupsen/logrus v1.6.0 => github.com/sirupsen/logrus v1.6.0
1111
)
1212

13-
require github.com/sqlitebrowser/dbhub.io v0.0.8
13+
require github.com/sqlitebrowser/dbhub.io v0.0.9

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e h1:qpG
123123
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA=
124124
github.com/sqlitebrowser/blackfriday v9.0.0+incompatible h1:ddH/UyzasooYgGIblVU4R8DdmBuJ7QXLvSqX/0chZv4=
125125
github.com/sqlitebrowser/blackfriday v9.0.0+incompatible/go.mod h1:/zga9sqpWzcewuI83AO5JZwe9+6F9GgPDdqqdNNEL/0=
126-
github.com/sqlitebrowser/dbhub.io v0.0.8 h1:zSwQ07mn4NQ8yGQVxXebpW4sWmlScNd3MY4Y3/cGz+E=
127-
github.com/sqlitebrowser/dbhub.io v0.0.8/go.mod h1:GgZi8wkjdRGkkUVgYNuZp5i+Yps3jGt/jjRuLKRi6Po=
126+
github.com/sqlitebrowser/dbhub.io v0.0.9 h1:XrQWZP1b07/u8i/Eh1RjA2p/MW77JD22ojk9uxpJHkA=
127+
github.com/sqlitebrowser/dbhub.io v0.0.9/go.mod h1:GgZi8wkjdRGkkUVgYNuZp5i+Yps3jGt/jjRuLKRi6Po=
128128
github.com/sqlitebrowser/github_flavored_markdown v0.0.0-20190120045821-b8cf8f054e47 h1:s0+Ea95n1LrsKh6rtclU/9Qb2/5ofvnfnR7gDDiFTw8=
129129
github.com/sqlitebrowser/github_flavored_markdown v0.0.0-20190120045821-b8cf8f054e47/go.mod h1:8vPIKi5FslxCXEgfQxrFtWfdclGy6VWAc9NA1ZTYCJg=
130130
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

vendor/github.com/sqlitebrowser/dbhub.io/common/responses.go

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/sqlitebrowser/dbhub.io/common/util.go

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ github.com/sourcegraph/annotate
6363
github.com/sourcegraph/syntaxhighlight
6464
# github.com/sqlitebrowser/blackfriday v9.0.0+incompatible
6565
github.com/sqlitebrowser/blackfriday
66-
# github.com/sqlitebrowser/dbhub.io v0.0.8
66+
# github.com/sqlitebrowser/dbhub.io v0.0.9
6767
## explicit
6868
github.com/sqlitebrowser/dbhub.io/common
6969
# github.com/sqlitebrowser/github_flavored_markdown v0.0.0-20190120045821-b8cf8f054e47

0 commit comments

Comments
 (0)