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

Switch to pull_request_target #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gudahtt
Copy link

@Gudahtt Gudahtt commented Aug 25, 2020

The event pull_request_target is now used to trigger this workflow, instead of pull_request. This ensures the workflow can run properly on forks (related: #6).

You can read more about this new event here: https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/

The event `pull_request_target` is now used to trigger this workflow,
instead of `pull_request`. This ensures the workflow can run properly
on forks (related: Roblox#6).

You can read more about this new event here:
https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/
@@ -9,7 +9,7 @@ export class PullCheckRunner {
}

public async rerunLastCheck() {
if (this.settings.payloadAction === "pull_request") {
if (this.settings.payloadAction === "pull_request_target") {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a breaking change 🤔 Though maybe that's OK.

Alternatively, we could handle both events as a possible trigger.

@github-actions
Copy link

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant