-
Notifications
You must be signed in to change notification settings - Fork 311
Sync organization members #1868
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
base: master
Are you sure you want to change the base?
Conversation
Dry-run check results
|
It's removing rust-lang-owner and other bots |
1bbac75
to
b8049db
Compare
I tried pushing one commit that also updated master, but failed miserably, so I reverted it 😅 |
b8049db
to
3e935a6
Compare
ebdec80
to
e05929e
Compare
b8a431b
to
c9d7993
Compare
c9d7993
to
e76e204
Compare
e76e204
to
6a05230
Compare
|
||
# GitHub accounts that are allowed to stay in the orgs, | ||
# even if they may not be members of any team. | ||
allowed-org-members = [ |
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.
nit: allowed
makes it sound like only these org members may be a part of an org :D Which of course doesn't make sense, and the comment does clarify it. But I don't have a great alternative. Maybe just special-org-members
? But it doesn't really matter.
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 like special-org-members
"rustbot", | ||
|
||
# Infra admins. | ||
"jdno", |
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.
Hmm, we start having a bunch of places where we hardcode infra-admins. Maybe it would be better if we loaded the actual contents of the infra-admins
team (so that we hardcode only the team in code, but not its members) in code and ignored them?
use indexmap::IndexMap; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
pub static BASE_URL: &str = "https://team-api.infra.rust-lang.org/v1"; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)] |
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 don't think we need to expose this to the JSON API? It's an internal implementation detail. Can't you just pass &Config
from team
to sync-team
in run_sync_team
?
Re-submitting #1866 again as requested:
cc @Kobzol
Discussed in #t-infra > removing inactive members from the org.