Skip to content

Commit

Permalink
feat(yolo.jsonv2): add mergerequest to the proto message + update api…
Browse files Browse the repository at this point in the history
… to handle it

Signed-off-by: ismael FALL <[email protected]>
  • Loading branch information
Doozers committed Sep 9, 2022
1 parent e7e0f3b commit 8ee4b48
Show file tree
Hide file tree
Showing 5 changed files with 498 additions and 319 deletions.
7 changes: 5 additions & 2 deletions api/yolopb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ message MetadataOverride {
string branch = 11;
string has_commit_id = 103 [(gogoproto.customname) = "HasCommitID"];
string has_project_id = 105 [(gogoproto.customname) = "HasProjectID"];
string has_mergerequest_id = 107 [(gogoproto.customname) = "HasMergeRequestID"];
}

message Build {
Expand All @@ -150,8 +151,10 @@ message Build {
string raw_branch = 21;
Commit has_raw_commit = 22;
Project has_raw_project = 23;
string has_raw_commit_id = 24 [(gogoproto.customname) = "HasRawCommitID"];
string has_raw_project_id = 25 [(gogoproto.customname) = "HasRawProjectID"];
MergeRequest has_raw_mergerequest = 24;
string has_raw_commit_id = 25 [(gogoproto.customname) = "HasRawCommitID"];
string has_raw_project_id = 26 [(gogoproto.customname) = "HasRawProjectID"];
string has_raw_mergerequest_id = 27 [(gogoproto.customname) = "HasRawMergerequestID"];

repeated Artifact has_artifacts = 101 [(gogoproto.moretags) = "gorm:\"foreignkey:HasBuildID\""];
Commit has_commit = 102;
Expand Down
2 changes: 1 addition & 1 deletion go/gen.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8ee4b48

Please sign in to comment.