Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6422399

Browse files
committed
repo_hook: add file status to PayloadCommit
1 parent 08824b5 commit 6422399

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
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.12.10"
17+
return "0.12.11"
1818
}
1919

2020
// Client represents a Gogs API client.

‎repo_hook.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ type PayloadCommit struct {
8686
URL string `json:"url"`
8787
Author *PayloadUser `json:"author"`
8888
Committer *PayloadUser `json:"committer"`
89-
Timestamp time.Time `json:"timestamp"`
89+
90+
Added []string `json:"added"`
91+
Removed []string `json:"removed"`
92+
Modified []string `json:"modified"`
93+
94+
Timestamp time.Time `json:"timestamp"`
9095
}
9196

9297
var (

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /