From 26fd73499d0f1e85e40eb49913dd3e5cb2ae0390 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Sun, 3 May 2026 17:20:14 +0200 Subject: [PATCH] Refine trigger comment regex patterns Updated regex patterns for trigger comments to enforce start of line matching. --- .buildkite/pull-requests.org-wide.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.buildkite/pull-requests.org-wide.json b/.buildkite/pull-requests.org-wide.json index 7b253e8edcd8..9b39fd9fe060 100644 --- a/.buildkite/pull-requests.org-wide.json +++ b/.buildkite/pull-requests.org-wide.json @@ -12,8 +12,8 @@ "allowed_list": ["github-actions[bot]", "renovate[bot]", "mergify[bot]", "dependabot[bot]", "elastic-renovate-prod[bot]", "elastic-observability-automation[bot]", "elastic-vault-github-plugin-prod[bot]"], "build_on_commit": true, "build_on_comment": true, - "trigger_comment_regex": "run docs-build ?(?rebuild)? ?(?warnlinkcheck)? ?(?skiplinkcheck)?", - "always_trigger_comment_regex": "buildkite test this ?(?rebuild)? ?(?warnlinkcheck)? ?(?skiplinkcheck)?", + "trigger_comment_regex": "^run docs-build ?(?rebuild)? ?(?warnlinkcheck)? ?(?skiplinkcheck)?\s*?$", + "always_trigger_comment_regex": "^buildkite test this ?(?rebuild)? ?(?warnlinkcheck)? ?(?skiplinkcheck)?\s*?$", "skip_ci_labels": [ "skip docs-build" ], @@ -91,8 +91,8 @@ "allowed_list": ["github-actions[bot]", "renovate[bot]", "mergify[bot]"], "build_on_commit": true, "build_on_comment": true, - "trigger_comment_regex": "run docs-build ?(?rebuild)? ?(?warnlinkcheck)? ?(?skiplinkcheck)?", - "always_trigger_comment_regex": "buildkite test this ?(?rebuild)? ?(?warnlinkcheck)? ?(?skiplinkcheck)?", + "trigger_comment_regex": "^run docs-build ?(?rebuild)? ?(?warnlinkcheck)? ?(?skiplinkcheck)?\s*?$", + "always_trigger_comment_regex": "^buildkite test this ?(?rebuild)? ?(?warnlinkcheck)? ?(?skiplinkcheck)?\s*?$", "skip_ci_labels": [ "skip docs-build" ], @@ -113,8 +113,8 @@ "allowed_list": ["github-actions[bot]", "renovate[bot]", "mergify[bot]"], "build_on_commit": true, "build_on_comment": true, - "trigger_comment_regex": "run docs-test", - "always_trigger_comment_regex": "run docs-test", + "trigger_comment_regex": "^run docs-test\s*?$", + "always_trigger_comment_regex": "^run docs-test\s*?$", "skip_ci_labels": [], "skip_ci_on_only_changed": [], "always_require_ci_on_changed": [],