Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(checkout): simplify checkout for pull request #94

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ inputs:
runs:
using: "composite"
steps:
- uses: xt0rted/pull-request-comment-branch@v2.0.0
if: github.event_name == 'issue_comment'
id: comment-branch

- uses: actions/checkout@v3
if: github.event_name == 'issue_comment'
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
ref: refs/pull/${{ github.event.issue.number }}/head
fetch-depth: ${{ inputs.fetch-depth }}
lfs: ${{ inputs.lfs }}

Expand Down
9 changes: 9 additions & 0 deletions actions/create-or-update-comment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ Action to create or update comment in pull request or issue
<!-- end description -->
<!-- start contents -->
<!-- end contents -->

Set permissions to wrtie issues and pull-requests. This is required to write the comment on the PR.

```yaml
permissions:
issues: write
pull-requests: write
```

<!-- start usage -->

```yaml
Expand Down