@@ -62,25 +62,25 @@ if [[ "${GITHUB_PR_BASE_REPO}" != 'docs' ]]; then
62
62
# repositories with a docs dir and changelog
63
63
" apm-aws-lambda" | " apm-agent-android" | " apm-agent-nodejs" | " apm-agent-python" | " apm-agent-ruby" | " apm-agent-rum-js" | " apm-agent-go" | " apm-agent-java" | " apm-agent-dotnet" | " apm-agent-php" | " apm-agent-ios" )
64
64
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
65
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs CHANGELOG.asciidoc)
65
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./docs/**.asciidoc " CHANGELOG.asciidoc)
66
66
;;
67
67
68
- # test glob
69
- " ecs-logging" )
68
+ # repositories with a docs dir that are migrated to docs-builder
69
+ " apm-k8s-attacher " | " cloud " | " ecs-logging" | " cloud-on-k8s " | " ecctl " | " ecs " | " ecs-dotnet " | " ecs-logging-go-logrus " | " ecs-logging-go-zap " | " ecs-logging-go-zerolog " | " ecs-logging-java " | " ecs-logging-nodejs " | " ecs-logging-php " | " ecs-logging-python " | " ecs-logging-ruby " | " elasticsearch-js " | " elasticsearch-ruby " | " elasticsearch-php " | " elasticsearch-rs " | " logstash " | " logstash-docs " | " security-docs " )
70
70
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
71
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " **/ *.asciidoc" )
71
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./docs/* *.asciidoc" )
72
72
;;
73
73
74
- # repositories with a docs dir
75
- " apm-k8s-attacher " | " cloud" | " cloud -assets" | " cloud-on-k8s " | " ecctl " | " ecs " | " ecs-dotnet " | " ecs-logging-go-logrus " | " ecs-logging-go-zap " | " ecs-logging-go-zerolog " | " ecs-logging-java " | " ecs-logging-nodejs " | " ecs-logging-php " | " ecs-logging-python " | " ecs-logging-ruby " | " elasticsearch-js" | " elasticsearch-js- legacy" | " elasticsearch-ruby " | " elasticsearch-php " | " elasticsearch- perl" | " elasticsearch-rs " | " kibana-cn" | " logstash " | " logstash-docs " | " security-docs " | " sense" | " swiftype" )
74
+ # repositories with a docs dir that are not migrated to docs-builder
75
+ " cloud-assets" | " elasticsearch-js- legacy" | " elasticsearch-perl" | " kibana-cn" | " sense" | " swiftype" )
76
76
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
77
77
docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs)
78
78
;;
79
79
80
80
# repositories with a docs dir, changelogs dir, and changelog
81
81
" apm-server" )
82
82
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
83
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs ./changelogs CHANGELOG.asciidoc)
83
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./docs/**.asciidoc " " ./changelogs/**.asciidoc " CHANGELOG.asciidoc)
84
84
;;
85
85
86
86
" docs-content" )
@@ -90,7 +90,7 @@ if [[ "${GITHUB_PR_BASE_REPO}" != 'docs' ]]; then
90
90
91
91
" beats" )
92
92
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
93
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./auditbeat ./CHANGELOG .asciidoc ./docs ./filebeat ./heartbeat ./journalbeat ./libbeat/docs ./libbeat/outputs/* /docs/* ./libbeat/processors/* /docs/* ./metricbeat ./packetbeat ./topbeat/docs ./winlogbeat ./x-pack/auditbeat ./x-pack/dockerlogbeat/docs ./x-pack/filebeat/docs ./x-pack/filebeat/processors/* /docs/* ./x-pack/functionbeat ./x-pack/libbeat/docs ./x-pack/libbeat/processors/* /docs/* ./x-pack/metricbeat/module)
93
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./auditbeat/**.asciidoc " ./** .asciidoc " ./docs/**.asciidoc " " ./filebeat/**.asciidoc " " ./heartbeat/**.asciidoc " " ./journalbeat/**.asciidoc " " ./libbeat/docs/**.asciidoc " " ./libbeat/outputs/*/docs/**.asciidoc " " ./libbeat/processors/*/docs/**.asciidoc " " ./metricbeat/**/*.asciidoc " " ./packetbeat/**.asciidoc " " ./topbeat/docs/**.asciidoc " " ./winlogbeat/**.asciidoc " " ./x-pack/auditbeat/**/*.asciidoc " " ./x-pack/dockerlogbeat/docs/**.asciidoc " " ./x-pack/filebeat/docs/**.asciidoc " " ./x-pack/filebeat/processors/*/docs/**.asciidoc " " ./x-pack/functionbeat/**.asciidoc " " ./x-pack/libbeat/docs/**.asciidoc " " ./x-pack/libbeat/processors/*/docs/**.asciidoc " " ./x-pack/metricbeat/module/**.asciidoc " )
94
94
;;
95
95
96
96
" clients-team" )
@@ -103,14 +103,19 @@ if [[ "${GITHUB_PR_BASE_REPO}" != 'docs' ]]; then
103
103
docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs/asciidoc)
104
104
;;
105
105
106
- " eland" | " enterprise-search-php" | " enterprise-search-python" | " enterprise-search-ruby" )
106
+ " eland" )
107
+ git fetch origin " $GITHUB_PR_TARGET_BRANCH "
108
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./docs/guide/**.asciidoc" )
109
+ ;;
110
+
111
+ " enterprise-search-php" | " enterprise-search-python" | " enterprise-search-ruby" )
107
112
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
108
113
docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs/guide)
109
114
;;
110
115
111
116
" elasticsearch" )
112
117
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
113
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./buildSrc ./build-tools-internal ./build-tools/src/main/resources ./client ./docs ./modules/reindex/src/internalClusterTest/java/org/elasticsearch/client/documentation ./modules/reindex/src/test/java/org/elasticsearch/client/documentation ./plugins/examples ./server/src/internalClusterTest/java/org/elasticsearch/client/documentation ./server/src/main/resources/org/elasticsearch/common ./server/src/test/java/org/elasticsearch/client/documentation ./x-pack/docs ./x-pack/plugin/esql/qa/testFixtures/src/main/resources ./x-pack/plugin/sql/qa ./x-pack/qa/sql)
118
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./buildSrc ./build-tools-internal ./build-tools/src/main/resources ./client " ./docs/**.asciidoc " ./modules/reindex/src/internalClusterTest/java/org/elasticsearch/client/documentation ./modules/reindex/src/test/java/org/elasticsearch/client/documentation ./plugins/examples ./server/src/internalClusterTest/java/org/elasticsearch/client/documentation ./server/src/main/resources/org/elasticsearch/common ./server/src/test/java/org/elasticsearch/client/documentation ./x-pack/docs ./x-pack/plugin/esql/qa/testFixtures/src/main/resources ./x-pack/plugin/sql/qa ./x-pack/qa/sql)
114
119
;;
115
120
116
121
" elasticsearch-hadoop" )
@@ -120,22 +125,22 @@ if [[ "${GITHUB_PR_BASE_REPO}" != 'docs' ]]; then
120
125
121
126
" elasticsearch-java" )
122
127
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
123
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs ./java-client/src/test/java/co/elastic/clients/documentation)
128
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs " ./java-client/src/test/java/co/elastic/clients/documentation/**.asciidoc " )
124
129
;;
125
130
126
131
" elasticsearch-net" )
127
132
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
128
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs ./tests/Tests/Documentation)
133
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./docs/**.asciidoc " ./tests/Tests/Documentation)
129
134
;;
130
135
131
136
" elasticsearch-py" )
132
137
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
133
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs/guide ./docs/examples)
138
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./docs/guide/**.asciidoc " ./docs/examples)
134
139
;;
135
140
136
141
" go-elasticsearch" )
137
142
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
138
- docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./.doc)
143
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./.doc/**.asciidoc " )
139
144
;;
140
145
141
146
" enterprise-search-pubs" )
@@ -148,11 +153,16 @@ if [[ "${GITHUB_PR_BASE_REPO}" != 'docs' ]]; then
148
153
docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./packages/enterprise-search/docs)
149
154
;;
150
155
151
- " esf " | " ingest-docs " | " observability-docs " | " stack-docs " | " x-pack-logstash" )
156
+ " x-pack-logstash" )
152
157
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
153
158
docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- ./docs/en)
154
159
;;
155
160
161
+ " esf" | " ingest-docs" | " observability-docs" | " stack-docs" | " x-pack-logstash" )
162
+ git fetch origin " $GITHUB_PR_TARGET_BRANCH "
163
+ docs_diff=$( git diff --stat " origin/$GITHUB_PR_TARGET_BRANCH " ...HEAD -- " ./docs/en/**.asciidoc" )
164
+ ;;
165
+
156
166
" observability-robots-playground" )
157
167
git fetch origin " $GITHUB_PR_TARGET_BRANCH "
158
168
echo " This project is only for testing purposes"
0 commit comments