You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "slawekjaranowski (via GitHub)" <gi...@apache.org> on 2026/10/16 20:55:35 UTC

[PR] Add pr-number composite action [maven-gh-actions-shared]

slawekjaranowski opened a new pull request, #347:
URL: https://github.com/apache/maven-gh-actions-shared/pull/347

   Adds a `pr-number` composite action in `.github/actions/pr-number`, which finds the pull request whose current head is a given commit.
   
   It is meant for privileged `workflow_run` workflows, where `github.event.workflow_run.pull_requests` is empty for pull requests from forks. The lookup follows the pattern from apache/infrastructure-website#313:
   
   - `head-sha` (required) is checked to be 40 hex characters and passed through `env:`, never interpolated into `run:`;
   - `state` (required) is one of `open`, `closed`, `merged`, `all`;
   - `gh pr list --search <sha>` finds candidates, and only a pull request whose `headRefOid` is exactly that commit is kept;
   - the `number` output is empty when no pull request matches, e.g. after a newer push.
   
   `repository` and `token` default to `github.repository` and `github.token`.
   
   [ci skip]
   
   ---
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add pr-number composite action [maven-gh-actions-shared]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on PR #347:
URL: https://github.com/apache/maven-gh-actions-shared/pull/347#issuecomment-6224549409

   ref:
    - #334 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add pr-number composite action [maven-gh-actions-shared]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski merged PR #347:
URL: https://github.com/apache/maven-gh-actions-shared/pull/347


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org