From f76fc6dcdd744681c9d3e2fc30b0fc813118c295 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 12 Aug 2026 08:50:47 -0700 Subject: [PATCH] feat: add option to fetch remote change history (tags) for GitSource dependencies PiperOrigin-RevId: 963471221 --- google/devtools/cloudbuild/v1/cloudbuild.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google/devtools/cloudbuild/v1/cloudbuild.proto b/google/devtools/cloudbuild/v1/cloudbuild.proto index 194fefc3d5..f67f368f9d 100644 --- a/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -1312,6 +1312,12 @@ message Dependency { // Required. Where should the files be placed on the worker. string dest_path = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. True if remote tags should be fetched too (default false). + // Note: when depth is 1 (default), git fetch only retrieves tags pointing + // to commits within the shallow boundary. Set depth to -1 to fetch all + // historical tags. + bool fetch_tags = 6 [(google.api.field_behavior) = OPTIONAL]; } // A repository for a git source.