You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
COMMENT="A PR to update the Python client models has been created: ${PR_URL}
160
+
MENTION=""
161
+
if [[ -n "$DOCS_PR_AUTHOR" ]]; then
162
+
MENTION="@${DOCS_PR_AUTHOR} "
163
+
fi
159
164
160
-
This was automatically triggered by OpenAPI specification changes in this PR."
165
+
if [[ "$PR_CREATED" = "true" ]]; then
166
+
HEADLINE="A companion PR has been opened in \`apify-client-python\` with the regenerated models: ${PR_URL}"
161
167
else
162
-
COMMENT="The Python client model PR has been updated with the latest OpenAPI spec changes: ${PR_URL}"
168
+
HEADLINE="The companion \`apify-client-python\` PR has been updated with the latest spec changes: ${PR_URL}"
163
169
fi
164
170
171
+
COMMENT=$(printf '%s\n' \
172
+
"> [!IMPORTANT]" \
173
+
"> **Action required** — ${MENTION}please coordinate this docs PR with the Python API client PR linked below." \
174
+
">" \
175
+
"> Because this PR modifies the OpenAPI specification, the generated models in \`apify-client-python\` must be regenerated to stay in sync. This has already been done automatically:" \
176
+
">" \
177
+
"> ${HEADLINE}" \
178
+
">" \
179
+
"> - Please make sure to review and merge both PRs together to keep the OpenAPI spec and API clients in sync." \
180
+
"> - You can ask for review and help from the Tooling team if needed.")
0 commit comments