File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+ # Copyright 2024 The Kubernetes Authors.
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
2
5
3
6
declare PATCH=false
4
7
declare MINOR=false
5
8
declare MAJOR=false
6
9
declare rc=0
7
10
8
- git log $( git describe --tags --abbrev=0) ..HEAD --oneline | tee /tmp/release-changelogs.txt
11
+ ORIGIN_MASTER=" origin/master"
12
+ LATEST_TAG=$( git describe --tags --abbrev=0)
13
+
14
+ git log " ${LATEST_TAG} ..HEAD" --oneline | tee /tmp/release-changelogs.txt
9
15
10
16
count=$( cat /tmp/release-changelogs.txt | wc -l)
11
17
@@ -18,7 +24,7 @@ if [[ $(cat /tmp/release-changelogs.txt | grep feat) ]]; then
18
24
fi
19
25
20
26
for f in $( find api) ; do
21
- git diff --exit-code " ${f} "
27
+ git diff " ${LATEST_TAG} ... ${ORIGIN_MASTER} " --exit-code -- " ${f} "
22
28
if [ $? -eq 1 ]; then
23
29
echo " Found changes on api dir at ${f} "
24
30
MAJOR=true
You can’t perform that action at this time.
0 commit comments