Skip to content

Commit 7dd9057

Browse files
authored
feat: yolo.json handle mergeRequest (#451)
* 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>
1 parent 9a46c6f commit 7dd9057

File tree

5 files changed

+496
-319
lines changed

5 files changed

+496
-319
lines changed

api/yolopb.proto

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ message MetadataOverride {
124124
string branch = 11;
125125
string has_commit_id = 103 [(gogoproto.customname) = "HasCommitID"];
126126
string has_project_id = 105 [(gogoproto.customname) = "HasProjectID"];
127+
string has_mergerequest_id = 107 [(gogoproto.customname) = "HasMergeRequestID"];
127128
}
128129

129130
message Build {
@@ -150,8 +151,10 @@ message Build {
150151
string raw_branch = 21;
151152
Commit has_raw_commit = 22;
152153
Project has_raw_project = 23;
153-
string has_raw_commit_id = 24 [(gogoproto.customname) = "HasRawCommitID"];
154-
string has_raw_project_id = 25 [(gogoproto.customname) = "HasRawProjectID"];
154+
MergeRequest has_raw_mergerequest = 24;
155+
string has_raw_commit_id = 25 [(gogoproto.customname) = "HasRawCommitID"];
156+
string has_raw_project_id = 26 [(gogoproto.customname) = "HasRawProjectID"];
157+
string has_raw_mergerequest_id = 27 [(gogoproto.customname) = "HasRawMergerequestID"];
155158

156159
repeated Artifact has_artifacts = 101 [(gogoproto.moretags) = "gorm:\"foreignkey:HasBuildID\""];
157160
Commit has_commit = 102;

go/gen.sum

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)