-
Notifications
You must be signed in to change notification settings - Fork 462
Create branch on PR #636
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
Create branch on PR #636
Conversation
This looks very useful to me. I have a few questions:
|
I like this, but I think we may still need some manual action involved just as a protection. I've seen examples where a specific comment like "run tests" by an admin in the PR chat triggers the workflow, or there are these. |
After some extensive testing I think the current configuration does the right thing:
Tests in my fork: https://github.com/jmduarte/hls4ml/pulls This needs to be merged into The one caveat is if a PR from a fork updates the GitHub Actions workflows, then this action will fail because |
We still need some manual component to the action, just a click button or anything to trigger the making of the branch. That’s just to have some oversight to prevent arbitrary code being run on the CI setup. |
@thesps I updated it so the action will only be triggered if an admin (or actually, anyone with Does that work for you? You can see it in action here: jmduarte#17 Note this won't work in our repo until this is merged. |
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.
I like this way with the label 👍 GH said the branch needed to pull from main before merging, so I hit the button to do that
* create branch on pr * try to update * try workflow_dispatch * try again * try again * try again * update * try again * try again * update * origin * trigger on please test label Co-authored-by: Sioni Summers <[email protected]>
Description
Currently, our GitLab PyTests do not run on PRs created from forks due to the configuration of GitLab CI (i.e. the commit has to exist in our repo). The purpose of this PR is to push the head of a PR branch (especially those made from forks) to a branch in this repo.
This PR adds two GitHub Action workflows
pr/#
, where#
is the PR numberpr/#
Type of change
For a new feature or function, please create an issue first to discuss it
with us before submitting a pull request.
Tests
Tested on https://github.com/jmduarte/hls4ml
Checklist