-
Notifications
You must be signed in to change notification settings - Fork 93
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
[JENKINS-58666, JENKINS-58730] Feature/trusted contributors #12
Conversation
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.
Missing getTrustedRevision
in scmSource
See example: https://github.com/search?q=getTrustedRevision+org%3Ajenkinsci&type=Code
src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSource.java
Outdated
Show resolved
Hide resolved
src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSource.java
Outdated
Show resolved
Hide resolved
src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSourceRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSource.java
Show resolved
Hide resolved
fe1a722
to
eb01073
Compare
This PR is ready to be merged. The trusted member strategy works now. Thanks @Casz for helping me fix this. Thanks @oleg-nenashev for suggesting this feature. This one way we can say Jenkins is better than GitLab CI. Because GitLab CI doesn't have any implementation for run pipeline on forked projects MR. |
src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSourceRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSourceRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSourceRequest.java
Outdated
Show resolved
Hide resolved
Btw @Casz we need to figure out what's wrong with web hook. This is the single most important feature we need before making the beta release. |
1aee0fd
to
9ea7ef3
Compare
Based on @oleg-nenashev suggestion added the trusted contributors (or members) permission for Fork Merge Requests Trait. The current implementation of permission in
GitLabSCMSourceRequest
works, as is correctly logged withmr author
and it's corresponding permission before the MR indexing. But theForkMergeRequestTrait
doesn't work in itself. Tried with different trust likemember
,nobody
etc. It doesn't work for any case. So there must be some problem in our implementation of ForkMRTrait.