-
Notifications
You must be signed in to change notification settings - Fork 25
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
Breaking: Limit permissions (optionally) to collaborators when triggering builds #46
Conversation
Can be disabled by a new checkbox
@bluesliverx this is ready to be merged... please look at it. |
@jetersen any chance merging this in please? thank you! |
My apologies, @lprimak, I've been on vacation for the last couple of weeks, and just got back. I can take a look, but it might be tomorrow before I can really look into it. Sorry for the delay, but thank you for the contribution! |
src/main/java/com/adobe/jenkins/github_pr_comment_build/GithubHelper.java
Outdated
Show resolved
Hide resolved
src/main/java/com/adobe/jenkins/github_pr_comment_build/GithubHelper.java
Outdated
Show resolved
Hide resolved
src/main/java/com/adobe/jenkins/github_pr_comment_build/GithubHelper.java
Outdated
Show resolved
Hide resolved
...ources/com/adobe/jenkins/github_pr_comment_build/TriggerPRCommentBranchProperty/config.jelly
Show resolved
Hide resolved
@lprimak, I got a minute to review it today. Thanks so much for the contribution as this has been requested multiple times! The biggest things are the new dependency and maintaining backwards compatibility. I'm open to discussion as well. |
thanks @bluesliverx |
email sent |
I guess the only thing to do is to change README |
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.
Your breaking binary compatibility and potentially breaking JobDSL or groovy scripts.
src/main/java/com/adobe/jenkins/github_pr_comment_build/TriggerPRCommentBranchProperty.java
Outdated
Show resolved
Hide resolved
src/main/java/com/adobe/jenkins/github_pr_comment_build/TriggerPRReviewBranchProperty.java
Outdated
Show resolved
Hide resolved
src/main/java/com/adobe/jenkins/github_pr_comment_build/TriggerPRUpdateBranchProperty.java
Outdated
Show resolved
Hide resolved
should be all set now |
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.
LGTM
...sources/com/adobe/jenkins/github_pr_comment_build/TriggerPRReviewBranchProperty/config.jelly
Outdated
Show resolved
Hide resolved
...sources/com/adobe/jenkins/github_pr_comment_build/TriggerPRUpdateBranchProperty/config.jelly
Outdated
Show resolved
Hide resolved
Nitpicking things now obviously, just that casing change. And if you don't want to do it, I can take care of it after this merges, just let me know. |
src/main/java/com/adobe/jenkins/github_pr_comment_build/TriggerPRUpdateBranchProperty.java
Show resolved
Hide resolved
In version 78.v2dcf62ba199b GitHub Pull Request Comment Build Plugin introduced permissions check for users triggering jobs with comments. This added a new checkbox/XML element that allows untrusted users to trigger builds. (see jenkinsci/github-pr-comment-build-plugin#46) This commit adds support for this option by allowing dictionary syntax for GH PR Comment Build plugin: ``` - trigger-build-on-pr-review: allow-untrusted-users: true ``` while preserving support for currently existing syntax: ``` - trigger-build-on-pr-review: true ``` Change-Id: I554129c779161b47cba4566f7821ef7590a242e0
In version 78.v2dcf62ba199b GitHub Pull Request Comment Build Plugin introduced permissions check for users triggering jobs with comments. This added a new checkbox/XML element that allows untrusted users to trigger builds. (see jenkinsci/github-pr-comment-build-plugin#46) This commit adds support for this option by allowing dictionary syntax for GH PR Comment Build plugin: ``` - trigger-build-on-pr-review: allow-untrusted-users: true ``` while preserving support for currently existing syntax: ``` - trigger-build-on-pr-review: true ``` Change-Id: I554129c779161b47cba4566f7821ef7590a242e0
In version 78.v2dcf62ba199b GitHub Pull Request Comment Build Plugin introduced permissions check for users triggering jobs with comments. This added a new checkbox/XML element that allows untrusted users to trigger builds. (see jenkinsci/github-pr-comment-build-plugin#46) This commit adds support for this option by allowing dictionary syntax for GH PR Comment Build plugin: ``` - trigger-build-on-pr-review: allow-untrusted-users: true ``` while preserving support for currently existing syntax: ``` - trigger-build-on-pr-review: true ``` Change-Id: I554129c779161b47cba4566f7821ef7590a242e0
In version 78.v2dcf62ba199b GitHub Pull Request Comment Build Plugin introduced permissions check for users triggering jobs with comments. This added a new checkbox/XML element that allows untrusted users to trigger builds. (see jenkinsci/github-pr-comment-build-plugin#46) This commit adds support for this option by allowing dictionary syntax for GH PR Comment Build plugin: ``` - trigger-build-on-pr-review: allow-untrusted-users: true ``` while preserving support for currently existing syntax: ``` - trigger-build-on-pr-review: true ``` Change-Id: I554129c779161b47cba4566f7821ef7590a242e0
In version 78.v2dcf62ba199b GitHub Pull Request Comment Build Plugin introduced permissions check for users triggering jobs with comments. This added a new checkbox/XML element that allows untrusted users to trigger builds. (see jenkinsci/github-pr-comment-build-plugin#46) This commit adds support for this option by allowing dictionary syntax for GH PR Comment Build plugin: ``` - trigger-build-on-pr-review: allow-untrusted-users: true ``` while preserving support for currently existing syntax: ``` - trigger-build-on-pr-review: true ``` Change-Id: I554129c779161b47cba4566f7821ef7590a242e0
Fixes #42