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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
exit 0 on no URL found
Oliver Güntherdadb0c9a5c7e
diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.ymlindex ae59544f94e..0405fd47f94 100644--- a/.github/workflows/version-check.yml+++ b/.github/workflows/version-check.yml@@ -22,7 +22,7 @@ jobs:- name: Verify linked version matches core versionid: version-check- run: ./script/ci/version_check.sh ${{ github.event.pull_request.body }}+ run: ./script/ci/version_check.sh "${{ github.event.pull_request.body }}"- name: Add comment if versions differif: steps.version-check.outputs.version_mismatch == 'true'diff --git a/script/ci/version_check.sh b/script/ci/version_check.shindex 7f35fcb2b44..29eaeb3ffe6 100755--- a/script/ci/version_check.sh+++ b/script/ci/version_check.sh@@ -31,10 +31,10 @@ set -e# script/ci/version_check-PR_BODY="$1"+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]+')+WP_URL=$(echo "$PR_BODY" | grep -oE 'https://community.openproject.org/(wp|work_packages|projects/[^/]+/work_packages)/[0-9]+' || true)if [ -z "$WP_URL" ]; thenecho "::warning::PR description does not contain a valid URL to an OpenProject ticket."@@ -74,9 +74,9 @@ if [[ "$VERSION_FROM_API" != "$VERSION_FROM_FILE" ]]; thenecho "Version mismatch detected."echo "version_mismatch=true" >> "$GITHUB_OUTPUT"- echo "wp_url='${WP_URL}'" >> "$GITHUB_OUTPUT"- echo "wp_version='${VERSION_FROM_API}'" >> "$GITHUB_OUTPUT"- echo "core_version='${VERSION_FROM_FILE}'" >> "$GITHUB_OUTPUT"+ echo "wp_url=${WP_URL}" >> "$GITHUB_OUTPUT"+ echo "wp_version=${VERSION_FROM_API}" >> "$GITHUB_OUTPUT"+ echo "core_version=${VERSION_FROM_FILE}" >> "$GITHUB_OUTPUT"elseecho "Version from the work package ${WORK_PACKAGE_ID} matches the version in the version file this PR targets."fi