You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2026/10/17 08:44:53 UTC
(maven-gh-actions-shared) branch v5 updated: Link the found PR in the job summary instead of a notice
This is an automated email from the ASF dual-hosted git repository.
slawekjaranowski pushed a commit to branch v5
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
The following commit(s) were added to refs/heads/v5 by this push:
new 827fd2b Link the found PR in the job summary instead of a notice
827fd2b is described below
commit 827fd2bd896e32a0d0c32a620bacfb221326a523
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sat Oct 17 10:40:35 2026 +0200
Link the found PR in the job summary instead of a notice
[ci skip]
Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
.github/actions/pr-number/action.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.github/actions/pr-number/action.yml b/.github/actions/pr-number/action.yml
index d39e9db..9685691 100644
--- a/.github/actions/pr-number/action.yml
+++ b/.github/actions/pr-number/action.yml
@@ -54,5 +54,10 @@ runs:
PR=$(gh pr list -R "$REPO" --state "$STATE" --search "$HEAD_SHA" \
--json number,headRefOid \
--jq ".[] | select(.headRefOid == \"$HEAD_SHA\") | .number" | head -n1)
- echo "::notice title=PR number::PR number: ${PR:-<none>} for commit: $HEAD_SHA"
+ echo "PR number: ${PR:-<none>} for commit: $HEAD_SHA"
+ if [[ -n "$PR" ]]; then
+ echo "Pull request: [#$PR]($GITHUB_SERVER_URL/$REPO/pull/$PR) for commit: \`$HEAD_SHA\`" >> "$GITHUB_STEP_SUMMARY"
+ else
+ echo "Pull request: none for commit: \`$HEAD_SHA\`" >> "$GITHUB_STEP_SUMMARY"
+ fi
echo "number=$PR" >> "$GITHUB_OUTPUT"