Update GitHub Actions to run on pull request events #282
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: PR #279 While the PR works, it had one flaw detailed below (apologies for the double PR, my understanding was incomplete).
In this link that I had also shared in the description of #279, there was this statement that to me was a bit confusing.
I was unsure what
However, instead of running against the workflow and code from the merge commit, the event runs against the workflow and code from the base of the pull request?
meant. To get more clarity on this, I raised a support ticket with GitHub and asked the following question (answer also provided):While in #253
pull_request
was dropped in favour ofpush
to avoid duplicate runs, I guess for it to work with forked repos, we need to add it back. I think usingpull_request
overpull_request_target
should be safe inpdfplumber
's case as there are no secrets involved AND if the forked repo PRs don't run on the merge commit, the green tick would be a false positive.