Skip to content
This repository was archived by the owner on Dec 9, 2022. It is now read-only.
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A GitHub action that will comment on the relevant open PR with a file contents w

- Requires the `GITHUB_TOKEN` secret.
- Requires the comment's artifact in the `msg` parameter.
- Supports `push` and `pull_request` event types.
- Supports `push`, `pull_request` and `pull_request_target` event types.

### Sample workflow

Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end

repo = event["repository"]["full_name"]

if ENV.fetch("GITHUB_EVENT_NAME") == "pull_request"
if ["pull_request", "pull_request_target"].include? ENV.fetch("GITHUB_EVENT_NAME")
pr_number = event["number"]
else
pulls = github.pull_requests(repo, state: "open")
Expand Down