-
Notifications
You must be signed in to change notification settings - Fork 165
Allow Jenkins email to be set using private email #47
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
Conversation
Code review, please. cc @cloudbeesci, @jhoblitt. |
@@ -21,7 +21,7 @@ | |||
</f:entry> | |||
|
|||
<f:entry title="OAuth Scope(s)" field="oauthScopes" help="/plugin/github-oauth/help/realm/oauth-scopes-help.html"> | |||
<f:textbox default="read:org" /> | |||
<f:textbox default="read:org,user:email" /> |
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'm fairly clueless about jelly<->stapler. Is there a way of calling #defaultOauthScope from the jelly template? That would be a lot better than my kludge of hard coding the default value in two places
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.
Perhaps, let me see if I can hack something together real quick.
cbeedeb
to
8b30d25
Compare
@jhoblitt updated jelly to include descriptor. Here's how I went about figuring it out.
|
8b30d25
to
55ce7c2
Compare
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
55ce7c2
to
fc3ea49
Compare
I uploaded a new change. It uses a |
7d93d84
to
642f8c1
Compare
Update default OAuth scope to read:org,user:email. This allows the Jenkins profile email to be set to the private primary GitHub email. user:email scope is optional. If an admin wishes to further restrict it they can. It will fall back to attempting to read a public email. fixes [JENKINS-27764]
642f8c1
to
4aff786
Compare
Update default OAuth scope to
read:org,user:email
. This allows the Jenkins profile email to be set to the private primary GitHub email.user:email
scope is optional. If an admin wishes to further restrict it they can. It will fall back to attempting to read a public email.fixes JENKINS-27764