@@ -37,16 +37,9 @@ presubmits:
37
37
args :
38
38
- /bin/sh
39
39
- -c
40
- # PULL_BASE_SHA is the revision on the target branch that the
41
- # PR gets merged into. What we want instead is the revision at
42
- # which the PR branch diverged from the target branch.
43
- # We get that from "git merge-base".
44
- #
40
+ # Base and target are detected automatically by the script based on Prow variables.
45
41
# -b can be used more than once.
46
- - " ./hack/apidiff.sh -r $(git merge-base ${PULL_BASE_SHA} ${PULL_PULL_SHA}) -t ${PULL_PULL_SHA} -b ${GOPATH}/src/sigs.k8s.io/controller-runtime"
47
- env :
48
- - name : REPO_DIR
49
- value : /workspace/k8s.io/kubernetes
42
+ - " ./hack/apidiff.sh -b ${GOPATH}/src/sigs.k8s.io/controller-runtime"
50
43
resources :
51
44
# Memory limits are derived from pull-kubernetes-verify, with less CPUs.
52
45
limits :
@@ -61,7 +54,7 @@ presubmits:
61
54
# A job which automatically runs for changes in client-go or the generated code
62
55
# to have visibility on the changes that will impact the external projects
63
56
# that are using the Kubernetes golang clients
64
- run_if_changed : ' (^staging\/src\/k8s.io\/client-go)|(^staging\/src\/k8s.io\/code-generator\/examples)'
57
+ run_if_changed : ' (( ^staging\/src\/k8s.io\/client-go)|(^staging\/src\/k8s.io\/code-generator\/examples))/.*\.go '
65
58
optional : true
66
59
decorate : true
67
60
annotations :
@@ -81,6 +74,7 @@ presubmits:
81
74
args :
82
75
- /bin/sh
83
76
- -c
77
+ # Base and target are detected automatically by the script based on Prow variables.
84
78
- " ./hack/apidiff.sh ./staging/src/k8s.io/code-generator/examples ./staging/src/k8s.io/client-go"
85
79
resources :
86
80
# Memory limits are derived from pull-kubernetes-verify, with less CPUs.
0 commit comments