diff --git a/boilerplate/_data/last-boilerplate-commit b/boilerplate/_data/last-boilerplate-commit index 53a31b14..db9c1a3d 100644 --- a/boilerplate/_data/last-boilerplate-commit +++ b/boilerplate/_data/last-boilerplate-commit @@ -1 +1 @@ -d0a07945463759cf0e3489cb46737dae08d66713 +195c29d18279f69ea5b4e53ae9d90a795c27144a diff --git a/boilerplate/openshift/golang-osd-e2e/.coderabbit.yaml b/boilerplate/openshift/golang-osd-e2e/.coderabbit.yaml new file mode 100644 index 00000000..e4fdc1ba --- /dev/null +++ b/boilerplate/openshift/golang-osd-e2e/.coderabbit.yaml @@ -0,0 +1,5 @@ +inheritance: true +reviews: + path_filters: + # Boilerplate-managed: skip review of boilerplate changes + - "!boilerplate/**" diff --git a/boilerplate/openshift/golang-osd-e2e/update b/boilerplate/openshift/golang-osd-e2e/update index fbd86675..4e3a06aa 100755 --- a/boilerplate/openshift/golang-osd-e2e/update +++ b/boilerplate/openshift/golang-osd-e2e/update @@ -10,6 +10,14 @@ source $CONVENTION_ROOT/_lib/common.sh # Expect POST [[ "$1" == "POST" ]] || err "Got a parameter I don't understand: '$1'. Did the infrastructure change?" +# Seed CodeRabbit configuration without overwriting repo customizations. +if [[ ! -f "${REPO_ROOT}/.coderabbit.yaml" ]]; then + echo "Copying .coderabbit.yaml to your repository root." + cp "${HERE}/.coderabbit.yaml" "${REPO_ROOT}/.coderabbit.yaml" +else + echo ".coderabbit.yaml already exists; leaving it unchanged." +fi + REPO_ROOT=$(git rev-parse --show-toplevel) OPERATOR_NAME=$(sed -n 's/.*OperatorName .*=.*"\([^"]*\)".*/\1/p' "${REPO_ROOT}/config/config.go") GO_MODULE_PATH=$(awk '/^module / { print $2; exit }' "${REPO_ROOT}/go.mod")