From 801591fed0c99f4866be60cc7cb85cc01ede845a Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Wed, 21 Jan 2026 11:41:35 -0800 Subject: [PATCH] update copyrights on changed files when creating auto dependency bump PR --- pipelines/shared-tasks/create-or-update-pr/task.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pipelines/shared-tasks/create-or-update-pr/task.sh b/pipelines/shared-tasks/create-or-update-pr/task.sh index 4364043c2..e0ec38059 100755 --- a/pipelines/shared-tasks/create-or-update-pr/task.sh +++ b/pipelines/shared-tasks/create-or-update-pr/task.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright 2020-2025 the Pinniped contributors. All Rights Reserved. +# Copyright 2020-2026 the Pinniped contributors. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 set -euo pipefail @@ -26,6 +26,16 @@ git add . # Print the current status to the log. git status +# Update copyrights on the staged files, if needed. +echo "Updating copyrights as needed ..." +./hack/update-copyright-year.sh + +# Add all the changed files again, in case copyrights were updated. +git add . + +# Print the current status to the log. +git status + # Did we just stage any changes? staged=$(git --no-pager diff --staged) if [[ "$staged" == "" ]]; then