From 4b63e53b2ac9bf81b31284729fce6588d57cf47a Mon Sep 17 00:00:00 2001 From: Nick Snyder Date: Thu, 29 Feb 2024 13:46:37 -0500 Subject: [PATCH] Add CommitCheckStatus filter to ListLabelHistory (#80) This is helpful so the review flow UI can fetch only commits that are pending on a label. --- buf/registry/module/v1/label_service.proto | 4 ++++ buf/registry/module/v1beta1/label_service.proto | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/buf/registry/module/v1/label_service.proto b/buf/registry/module/v1/label_service.proto index c5a6aaf..d5dae07 100644 --- a/buf/registry/module/v1/label_service.proto +++ b/buf/registry/module/v1/label_service.proto @@ -156,6 +156,10 @@ message ListLabelHistoryRequest { // TODO: We are purposefully not making the default the zero enum value, however // we may want to consider this. Order order = 4 [(buf.validate.field).enum.defined_only = true]; + // Only return Commits that have one of these CommitCheckStatus values for this label. + // + // If not set, Commits with any CommitCheckStatus value are returned. + repeated CommitCheckStatus commit_check_statuses = 6 [(buf.validate.field).repeated.items.enum.defined_only = true]; } message ListLabelHistoryResponse { diff --git a/buf/registry/module/v1beta1/label_service.proto b/buf/registry/module/v1beta1/label_service.proto index 4491946..f73e074 100644 --- a/buf/registry/module/v1beta1/label_service.proto +++ b/buf/registry/module/v1beta1/label_service.proto @@ -164,6 +164,10 @@ message ListLabelHistoryRequest { // // If not set, the latest DigestType is used, currently B5. DigestType digest_type = 5 [(buf.validate.field).enum.defined_only = true]; + // Only return Commits that have one of these CommitCheckStatus values for this label. + // + // If not set, Commits with any CommitCheckStatus value are returned. + repeated CommitCheckStatus commit_check_statuses = 6 [(buf.validate.field).repeated.items.enum.defined_only = true]; } message ListLabelHistoryResponse {