diff --git a/.github/workflows/commit_checks.yml b/.github/workflows/commit_checks.yml index 0ef67cfc5e9..59fd1f81776 100644 --- a/.github/workflows/commit_checks.yml +++ b/.github/workflows/commit_checks.yml @@ -53,7 +53,12 @@ jobs: - name: Result if: steps.check.outputs.exit_code != '0' run: | - echo "::error::PR title does not follow conventional commits format. See the PR comment for details." + if [ "$IS_FORK" = "true" ]; then + # Output the entire content of the comment on the job log as a substitute for the comment. + tee -a "$GITHUB_STEP_SUMMARY" < comment.md + else + echo "::error::PR title does not follow conventional commits format. See the PR comment for details." + fi exit 1 pr-body: diff --git a/Tools/ci/check_pr_title.py b/Tools/ci/check_pr_title.py index 5ef2663f8a7..4d500e66bf4 100755 --- a/Tools/ci/check_pr_title.py +++ b/Tools/ci/check_pr_title.py @@ -120,8 +120,8 @@ def format_markdown(title: str) -> str: ]) lines.extend([ - "**To fix this:** click the ✏️ next to the PR title at the top " - "of this page and update it.", + "**To fix this:** click the ✏️ next to the PR title " + "and update it.", "", "See [CONTRIBUTING.md](https://github.com/PX4/PX4-Autopilot/blob/main/CONTRIBUTING.md#commit-message-convention) " "for details.",