feat(server): revision authors, revisions after a seq, online machines
This commit is contained in:
1 parent
91d83f3032
commit
c2e9284a63
6 files changed
+299
-15
No files matched your search
@@ -32,6 +32,7 @@ type Change struct {
|
||||
|
||||
type Push struct {
|
||||
Name string `json:"name"`
|
||||
Author string `json:"author,omitempty"`
|
||||
MainSHA string `json:"main_sha"`
|
||||
MainBranch string `json:"main_branch"`
|
||||
Changes []Change `json:"changes"`
|
||||
@@ -40,6 +41,7 @@ type Push struct {
|
||||
type Revision struct {
|
||||
Seq int64 `json:"seq"`
|
||||
Machine string `json:"machine"`
|
||||
Author string `json:"author"`
|
||||
Time int64 `json:"time"`
|
||||
MainSHA string `json:"main_sha"`
|
||||
MainBranch string `json:"main_branch"`
|
||||
@@ -58,6 +60,8 @@ type Machine struct {
|
||||
Name string `json:"name"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
LastPush int64 `json:"last_push"`
|
||||
LastSeen int64 `json:"last_seen"`
|
||||
Online bool `json:"online"`
|
||||
Revisions int64 `json:"revisions"`
|
||||
}
|
||||
|
||||
@@ -66,8 +70,9 @@ type Login struct {
|
||||
}
|
||||
|
||||
type Event struct {
|
||||
Repo string `json:"repo"`
|
||||
Seq int64 `json:"seq"`
|
||||
Repo string `json:"repo"`
|
||||
Seq int64 `json:"seq"`
|
||||
Author string `json:"author,omitempty"`
|
||||
}
|
||||
|
||||
type ClaimRequest struct {
|
||||
|
||||
Reference in new issue
Block a user