summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/sdk/gitea/repo_commit.go
diff options
context:
space:
mode:
authorRichard Mahn <richmahn@users.noreply.github.com>2019-03-22 09:38:49 -0600
committertechknowlogick <matti@mdranta.net>2019-03-22 11:38:49 -0400
commitecce28f9dfaaa78a8471053ca40716a1e426aa6f (patch)
tree0fa497785e4116bd4086d63c666f223883a49253 /vendor/code.gitea.io/sdk/gitea/repo_commit.go
parent03e4db40cc09d6c211b3026f743c38c227e4fc8e (diff)
downloadgitea-ecce28f9dfaaa78a8471053ca40716a1e426aa6f.tar.gz
gitea-ecce28f9dfaaa78a8471053ca40716a1e426aa6f.zip
Updates SDK dep (#6406)
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/repo_commit.go')
-rw-r--r--vendor/code.gitea.io/sdk/gitea/repo_commit.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/repo_commit.go b/vendor/code.gitea.io/sdk/gitea/repo_commit.go
index 2954f9fc1c..74c52c06fb 100644
--- a/vendor/code.gitea.io/sdk/gitea/repo_commit.go
+++ b/vendor/code.gitea.io/sdk/gitea/repo_commit.go
@@ -9,6 +9,13 @@ import (
"fmt"
)
+// Identity for a person's identity like an author or committer
+type Identity struct {
+ Name string `json:"name" binding:"MaxSize(100)"`
+ // swagger:strfmt email
+ Email string `json:"email" binding:"MaxSize(254)"`
+}
+
// CommitMeta contains meta information of a commit in terms of API.
type CommitMeta struct {
URL string `json:"url"`
@@ -17,9 +24,8 @@ type CommitMeta struct {
// CommitUser contains information of a user in the context of a commit.
type CommitUser struct {
- Name string `json:"name"`
- Email string `json:"email"`
- Date string `json:"date"`
+ Identity
+ Date string `json:"date"`
}
// RepoCommit contains information of a commit in the context of a repository.