Skip to content

Commit a33079b

Browse files
authored
Add RepoID to MessageSystemGitPush (keybase#10261)
1 parent 050a48c commit a33079b

6 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎go/git/put.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func sendChat(ctx context.Context, g *libkb.GlobalContext, teamID keybase1.TeamI
9898
subBody := chat1.NewMessageSystemWithGitpush(chat1.MessageSystemGitPush{
9999
Team: arg.Folder.Name,
100100
Pusher: g.Env.GetUsername().String(),
101+
RepoID: arg.RepoID,
101102
RepoName: string(arg.Metadata.RepoName),
102103
Refs: arg.Metadata.Refs,
103104
})

‎go/protocol/chat1/local.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ type MessageSystemGitPush struct {
214214
Team string `codec:"team" json:"team"`
215215
Pusher string `codec:"pusher" json:"pusher"`
216216
RepoName string `codec:"repoName" json:"repoName"`
217+
RepoID keybase1.RepoID `codec:"repoID" json:"repoID"`
217218
Refs []keybase1.GitRefMetadata `codec:"refs" json:"refs"`
218219
}
219220

@@ -222,6 +223,7 @@ func (o MessageSystemGitPush) DeepCopy() MessageSystemGitPush {
222223
Team: o.Team,
223224
Pusher: o.Pusher,
224225
RepoName: o.RepoName,
226+
RepoID: o.RepoID.DeepCopy(),
225227
Refs: (func(x []keybase1.GitRefMetadata) []keybase1.GitRefMetadata {
226228
if x == nil {
227229
return nil

‎protocol/avdl/chat1/local.avdl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ protocol local {
6565
string team;
6666
string pusher;
6767
string repoName;
68+
keybase1.RepoID repoID;
6869
array<keybase1.GitRefMetadata> refs;
6970
}
7071

‎protocol/js/rpc-chat-gen.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ export type MessageSystemComplexTeam = $ReadOnly<{team: String}>
957957

958958
export type MessageSystemCreateTeam = $ReadOnly<{team: String, creator: String}>
959959

960-
export type MessageSystemGitPush = $ReadOnly<{team: String, pusher: String, repoName: String, refs?: ?Array<Keybase1.GitRefMetadata>}>
960+
export type MessageSystemGitPush = $ReadOnly<{team: String, pusher: String, repoName: String, repoID: Keybase1.RepoID, refs?: ?Array<Keybase1.GitRefMetadata>}>
961961

962962
export type MessageSystemInviteAddedToTeam = $ReadOnly<{team: String, inviter: String, invitee: String, adder: String, inviteType: Keybase1.TeamInviteCategory}>
963963

‎protocol/json/chat1/local.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@
197197
"type": "string",
198198
"name": "repoName"
199199
},
200+
{
201+
"type": "keybase1.RepoID",
202+
"name": "repoID"
203+
},
200204
{
201205
"type": {
202206
"type": "array",

‎shared/constants/types/rpc-chat-gen.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ export type MessageSystemComplexTeam = $ReadOnly<{team: String}>
957957

958958
export type MessageSystemCreateTeam = $ReadOnly<{team: String, creator: String}>
959959

960-
export type MessageSystemGitPush = $ReadOnly<{team: String, pusher: String, repoName: String, refs?: ?Array<Keybase1.GitRefMetadata>}>
960+
export type MessageSystemGitPush = $ReadOnly<{team: String, pusher: String, repoName: String, repoID: Keybase1.RepoID, refs?: ?Array<Keybase1.GitRefMetadata>}>
961961

962962
export type MessageSystemInviteAddedToTeam = $ReadOnly<{team: String, inviter: String, invitee: String, adder: String, inviteType: Keybase1.TeamInviteCategory}>
963963

0 commit comments

Comments
 (0)