Skip to content

Commit

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

Signed-off-by: ismael FALL <ismael.fall@epitech.eu>

* fix: remove debug

Signed-off-by: ismael FALL <ismael.fall@epitech.eu>

Signed-off-by: ismael FALL <ismael.fall@epitech.eu>
  • Loading branch information
Doozers authored Sep 14, 2022
1 parent 9a46c6f commit 7dd9057
Show file tree
Hide file tree
Showing 5 changed files with 496 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 7dd9057

Please sign in to comment.