8000 README: use pull_request_target in example by dlech · Pull Request #254 · actions/github-script · GitHub
[go: up one dir, main page]

Skip to content

README: use pull_request_target in example #254

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

Merged
merged 1 commit into from
Mar 31, 2022
Merged
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
README: use pull_request_target in example
Pull requests from forks do not have write permission, so we need to use `pull_request_target` instead of `pull_request` to enable write permission.

Fixes #42.
  • Loading branch information
dlech authored Mar 30, 2022
commit e44260d7682ffe66460da3070c6694e692332562
2 changes: 1 addition & 1 deletion README.md
5D68
Original file line numberDiff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
You can format text in comments using the same [Markdown syntax](https://docs.github.com/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) as the GitHub web interface:

```yaml
on: pull_request
on: pull_request_target

jobs:
welcome:
Expand Down
0