Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Limit to first url

Christophe Bliardc071923d9217
diff --git a/script/ci/version_check.sh b/script/ci/version_check.sh
index 29eaeb3ffe6..7d97b89ee4e 100755
--- a/script/ci/version_check.sh
+++ b/script/ci/version_check.sh
@@ -33,8 +33,8 @@ set -e
PR_BODY="$@"
-# Extract URL from PR description
-WP_URL=$(echo "$PR_BODY" | grep -oE 'https://community.openproject.org/(wp|work_packages|projects/[^/]+/work_packages)/[0-9]+' || true)
+# Extract first work package URL from PR description
+WP_URL=$(echo "$PR_BODY" | grep -oE 'https://community.openproject.org/(wp|work_packages|projects/[^/]+/work_packages)/[0-9]+' | head -n 1 || true)
if [ -z "$WP_URL" ]; then
echo "::warning::PR description does not contain a valid URL to an OpenProject ticket."