Skip to content

Commit

Permalink
feat(yolo.json): add handling of a yolo.json file to override build's…
Browse files Browse the repository at this point in the history
… infos

Signed-off-by: ismael FALL <[email protected]>
  • Loading branch information
Doozers committed Sep 8, 2022
1 parent f70f264 commit c1aaaa7
Show file tree
Hide file tree
Showing 5 changed files with 774 additions and 245 deletions.
10 changes: 10 additions & 0 deletions api/yolopb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ message BuildListFilters {
// DB Schemas
//

message overrideBuild {
string branch = 1;
string has_commit_id = 2 [(gogoproto.customname) = "HasCommitID"];
string has_project_id = 3 [(gogoproto.customname) = "HasProjectID"];
}

message Build {
/// fields

Expand All @@ -141,6 +147,10 @@ message Build {

/// relationships

string raw_branch = 21;
string has_raw_commit_id = 22 [(gogoproto.customname) = "HasRawCommitID"];
string has_raw_project_id = 23 [(gogoproto.customname) = "HasRawProjectID"];

repeated Artifact has_artifacts = 101 [(gogoproto.moretags) = "gorm:\"foreignkey:HasBuildID\""];
Commit has_commit = 102;
string has_commit_id = 103 [(gogoproto.customname) = "HasCommitID"];
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 c1aaaa7

Please sign in to comment.