test(e2e): allow external PRs via ok-to-test label#2611
test(e2e): allow external PRs via ok-to-test label#2611zakisk wants to merge 1 commit intotektoncd:mainfrom
Conversation
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
c119c8d to
d0f87eb
Compare
|
Do I understand right that this is to bring the What restrictions do we have in place about labeling? I see I can't add labels on this PR so I assume there are some restrictions |
|
it's a good idea but remember-ok-to-test is something we want to avoid which what this label is doing, if we want this we need to respect the remember-ok-to-test so every PR syncronization it will be automatically removed |
|
Arf I was induce in error by Andrew email, (and looking at this one phone ) it's for our dogfooding, my comment is is still accurate tho, if we put the label it will stay like this and new iterations may introduce security issues |
|
But it deletes label so how will it stay? |
|
@chmouel I believe this has the opposite effect; if a non-contributor updates a pull request which has the |
|
ah yeah i see it properly now! okay yeah so it answer on labeled and remove it straight away... this sounds good to me, yeah labels are only for repo owner i think... i know its a bit much but with claude and llm it should be easy can we take off this giant javascript thing and convert it in python in hack/ instead, this would make me more confident for reviews, check, linting etc... |
Add ok-to-test label gating as a fallback for external contributors who are not org members or repo collaborators. Maintainers can approve external PRs by adding the ok-to-test label after code review. The label is automatically removed on synchronize, opened, and reopened events to prevent running CI on new untrusted code without re-approval. Signed-off-by: Zaki Shaikh <zashaikh@redhat.com> Assisted-by: Claude Opus 4.6 (via Claude Code)
62dab7d to
b4c4dea
Compare
I extracted the script in .github/scripts and calling the exported func in e2e.yaml. if we do this in python script then it would lots of changes like passing the whole context and payload, creating github client etc this looks more convenient to me. |
|
okay i ddin't know about .github/scripts, one last thing were you able to properly test? |
will do testing |
|
Yeah, I'd like to make sure the label is removed. |
Add ok-to-test label gating as a fallback for external contributors who are not org members or repo collaborators. Maintainers can approve external PRs by adding the ok-to-test label after code review.
The label is automatically removed on synchronize, opened, and reopened events to prevent running CI on new untrusted code without re-approval.
Assisted-by: Claude Opus 4.6 (via Claude Code)
📝 Description of the Change
🔗 Linked GitHub Issue
Fixes #
🧪 Testing Strategy
🤖 AI Assistance
AI assistance can be used for various tasks, such as code generation,
documentation, or testing.
Please indicate whether you have used AI assistance
for this PR and provide details if applicable.
Important
Slop will be simply rejected, if you are using AI assistance you need to make sure you
understand the code generated and that it meets the project's standards. you
need at least know how to run the code and deploy it (if needed). See
startpaac to make it easy
to deploy and test your code changes.
If the majority of the code in this PR was generated by an AI, please add a
Co-authored-bytrailer to your commit message.For example:
Co-authored-by: Claude noreply@anthropic.com
✅ Submitter Checklist
fix:,feat:) matches the "Type of Change" I selected above.make testandmake lintlocally to check for and fix anyissues. For an efficient workflow, I have considered installing
pre-commit and running
pre-commit installtoautomate these checks.