-
Notifications
You must be signed in to change notification settings - Fork 209
Allow contributor PRs to run tests - CLI #1866
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
Allow contributor PRs to run tests - CLI #1866
Conversation
|
👋 @haritamar |
| issues: | ||
| types: [closed] | ||
| pull_request: | ||
| pull_request_target: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Pylon actions don't actually need an environment, since they don't need the PR code, just the PR details.
To be safe I actually removed the checkout which is unneeded.
| issues: | ||
| types: [closed] | ||
| pull_request: | ||
| pull_request_target: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In both repos we are checking: github.event_name == 'pull_request'. I don't think it will work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks!
.github/workflows/run-precommit.yml
Outdated
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| pull_request_target: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to change it for the pre-commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually we really don't
I thought about that it's running code, but it's not using secrets so no issues here, changing back
* use pull_request_target + environment to allow running tests on contributor PRs * run-precommit should be on PR branch * a bit safer condition * CR fixes * no need for pull_request_target in precommit
No description provided.