Skip to content
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

Make new teams visible to org members #75

Merged
merged 11 commits into from
Feb 7, 2020

Conversation

timja
Copy link
Member

@timja timja commented Jan 26, 2020

Requires hub4j/github-api#683

Ref: https://groups.google.com/d/msg/jenkinsci-dev/U_lFkTzmg1E/S-5Q7IVdBQAJ

This PR does:

  1. New teams created will be 'visible' (org members can see them and they show up in the reviewers list if CODEOWNERS are used)
  2. All users in the HOSTING request will be made a 'Maintainer' of the GH team
  3. Adds a new command for making a secret team visible
  4. Adds a command to add a user as a maintainer of a team

Docs: jenkins-infra/jenkins.io#2802

@@ -86,7 +86,8 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId>
<version>1.89</version>
<classifier>shaded</classifier>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some conflict when running the latest version, getting a repository that didn't exist seemed to go into an infinite loop.

couldn't find the conflict, but this fixed it

Copy link
Contributor

@slide slide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing I am not sure about is making the first listed person the maintainer. We need to make sure people filling the hosting requests know this very clearly.

@timja
Copy link
Member Author

timja commented Jan 26, 2020

Description on the field? Wasn’t sure about making everyone maintainers so just left it as the first one

@timja
Copy link
Member Author

timja commented Jan 26, 2020

Documentation: jenkins-infra/jenkins.io#2802

@slide
Copy link
Contributor

slide commented Jan 27, 2020

Description on the field? Wasn’t sure about making everyone maintainers so just left it as the first one

I think we should make everyone maintainers, or else have a separate field for the maintainer so it is very explicit. I just foresee having to clean up a bunch of this when people don't read or understand what it means.

@timja
Copy link
Member Author

timja commented Jan 27, 2020

Description on the field? Wasn’t sure about making everyone maintainers so just left it as the first one

I think we should make everyone maintainers, or else have a separate field for the maintainer so it is very explicit. I just foresee having to clean up a bunch of this when people don't read or understand what it means.

Happy to implement either,

Do you have a preference? / anyone else?

also cc @batmat since you're also in the hosting team (can't seem to request a review from you)

@timja
Copy link
Member Author

timja commented Jan 27, 2020

Description on the field? Wasn’t sure about making everyone maintainers so just left it as the first one

I think we should make everyone maintainers, or else have a separate field for the maintainer so it is very explicit. I just foresee having to clean up a bunch of this when people don't read or understand what it means.

Implemented everyone as a maintainer

@timja timja requested a review from slide January 28, 2020 23:57
@olblak
Copy link
Member

olblak commented Jan 29, 2020

I think we should make everyone maintainers, or else have a separate field for the maintainer so it is very explicit. I just foresee having to clean up a bunch of this when people don't read or understand what it means.

What would be the risk of things we couldn't revert if everybody was a maintainer?
Considering that the repository are public anyway.

@timja
Copy link
Member Author

timja commented Jan 29, 2020

We can always downgrade if required, maintainer required that the user is on the org already they can’t send out invites but it’s very useful for teams of people who have multiple plugins or people who have multiple plugins in general

@timja timja requested a review from slide January 29, 2020 20:38
@slide
Copy link
Contributor

slide commented Jan 29, 2020

My merge of master messed something up, I'll look at it in a bit.

@timja
Copy link
Member Author

timja commented Jan 30, 2020

GitHub api version mismatch I think, will fix soon

@slide
Copy link
Contributor

slide commented Jan 30, 2020

@oleg-nenashev Any issues with this?

@olblak
Copy link
Member

olblak commented Feb 7, 2020

@timja Can you look at the file conflict? then we can merge this Pr

@timja
Copy link
Member Author

timja commented Feb 7, 2020

Done @olblak

@olblak olblak merged commit 7231985 into jenkins-infra:master Feb 7, 2020
@timja timja deleted the add-create-team-visible branch February 7, 2020 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants