Skip to content

Commit af20948

Browse files
author
Josh Frye
committed
Add default branch to repo and change version
1 parent 4f98d4d commit af20948

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

gogs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
func Version() string {
17-
return "0.7.2"
17+
return "0.7.3"
1818
}
1919

2020
// Client represents a Gogs API client.

repo_hooks.go

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,17 @@ type PayloadCommit struct {
9292
}
9393

9494
type PayloadRepo struct {
95-
ID int64 `json:"id"`
96-
Name string `json:"name"`
97-
URL string `json:"url"`
98-
SSHURL string `json:"ssh_url"`
99-
CloneURL string `json:"clone_url"`
100-
Description string `json:"description"`
101-
Website string `json:"website"`
102-
Watchers int `json:"watchers"`
103-
Owner *PayloadAuthor `json:"owner"`
104-
Private bool `json:"private"`
95+
ID int64 `json:"id"`
96+
Name string `json:"name"`
97+
URL string `json:"url"`
98+
SSHURL string `json:"ssh_url"`
99+
CloneURL string `json:"clone_url"`
100+
Description string `json:"description"`
101+
Website string `json:"website"`
102+
Watchers int `json:"watchers"`
103+
Owner *PayloadAuthor `json:"owner"`
104+
Private bool `json:"private"`
105+
DefaultBranch string `json:"default_branch"`
105106
}
106107

107108
// _________ __

0 commit comments

Comments
 (0)