Skip to content

Commit

Permalink
feat: add ?with_no_mergerequet and disable builds without merge reque…
Browse files Browse the repository at this point in the history
…st by default

Signed-off-by: Manfred Touron <[email protected]>
  • Loading branch information
moul committed Oct 9, 2020
1 parent e2131c9 commit c40e20a
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 181 deletions.
7 changes: 6 additions & 1 deletion api/yolopb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package yolo;

import "google/api/annotations.proto";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/golang/protobuf/ptypes/timestamp/timestamp.proto";
import "google/protobuf/timestamp.proto";

option go_package = "berty.tech/yolo/go/pkg/yolopb";
option (gogoproto.sizer_all) = true;
Expand Down Expand Up @@ -97,6 +97,9 @@ message BuildList {

// filter on branch
repeated string branch = 13;

// filter builds with merge requests
bool with_no_mergerequest = 14;
}
message Response {
repeated Build builds = 1;
Expand All @@ -108,6 +111,8 @@ message BuildListFilters {
message Response {
repeated Entity entities = 1;
repeated Project projects = 2;
// FIXME: authors
// FIXME: branchs?
}
}

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 c40e20a

Please sign in to comment.