-
Notifications
You must be signed in to change notification settings - Fork 474
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
CI: Add workflow for author approved label #98815
Conversation
approved |
Ah, I can't test this here, since it's an
I suppose if we merge this, I can test it in a separate PR that could presumably update the workflow and it would get the changes from the branch instead of from main? |
I think, for issue comments and PR comments, it always picks up the workflow file from the default branch :( We could make a fork of General and do some testing there? |
I wonder if we could come up with a different name other than "author"? In the AutoMerge codebase, we always use "author" to refer to the actual GitHub PR author, so So it might be a little confusing to also use the same term "author" for the human that triggered Registrator. Maybe "registration-trigger-user` or something like that? |
For the label? I think we should make sure it's understandable by the user, so they can know that their approval was picked up correctly. So I think it shouldn't be too obscure. What about |
Ok, I've tested it here, and updated this PR. Note the times on the Julia part vary from 1-2s up to 15-20s, I'm not really sure why. However that code only runs when a comment is posted from a non-bot user that includes "approved", so hopefully it doesn't need to run too much. |
Can we also exclude the |
I have excluded all bot users |
Yeah let's go with that. |
I had already renamed the label to I think this is good to go, and am writing a PR to RegistryCI to make use of this in the sequential version skipping check (probably to the delight of like 2 people who like skipping versions). We can also use it for other things down the line. |
Co-authored-by: Dilum Aluthge <[email protected]>
Co-authored-by: Dilum Aluthge <[email protected]>
Co-authored-by: Dilum Aluthge <[email protected]>
This intends to facilitate AutoMerge reading this label and bypassing some checks if the author approves. The intended use is:
Currently this workflow is useless as AutoMerge does not have such conditional checks, but I wanted to put a PR to try it out.
Note that JuliaRegistries/RegistryCI.jl#536 shows how easy it is to use label information within automerge itself, which I think makes this a viable route.
For the sake of testing, I will add text to trigger the regex: