1
0
mirror of https://github.com/actions/checkout.git synced 2026-03-10 09:01:44 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
ADTC
d6381d6871
Merge a8f4e23084 into 8edcb1bdb4 2025-07-24 15:56:21 -04:00
Tingluo Huang
8edcb1bdb4
Update CODEOWNERS for actions (#2224) 2025-07-23 09:20:20 -04:00
ADTC
a8f4e23084
Add to README how to checkout PR in issue_comment event
Closes #331
2023-03-27 01:42:09 +08:00
2 changed files with 12 additions and 1 deletions

View File

@ -1 +1 @@
* @actions/actions-launch
* @actions/actions-runtime

View File

@ -160,6 +160,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
- [Checkout multiple repos (private)](#Checkout-multiple-repos-private)
- [Checkout pull request HEAD commit instead of merge commit](#Checkout-pull-request-HEAD-commit-instead-of-merge-commit)
- [Checkout pull request on closed event](#Checkout-pull-request-on-closed-event)
- [Checkout pull request on `issue_comment` event](#Checkout-pull-request-on-issue_comment-event)
- [Push a commit using the built-in token](#Push-a-commit-using-the-built-in-token)
- [Push a commit to a PR using the built-in token](#Push-a-commit-to-a-PR-using-the-built-in-token)
@ -287,6 +288,16 @@ jobs:
- uses: actions/checkout@v4
```
## Checkout pull request on `issue_comment` event
**Note:** The job must check if the issue is a pull request using `if: github.event.issue.pull_request` which skips it otherwise.
```yaml
- uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.issue.number }}/head
```
## Push a commit using the built-in token
```yaml