-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,29 @@ permissions-bools = [ | |
"dev-desktop", | ||
"sync-team-confirmation", | ||
] | ||
|
||
# GitHub accounts that are allowed to stay in the orgs, | ||
# even if they may not be members of any team. | ||
allowed-org-members = [ | ||
# Bots. | ||
"bors", | ||
"craterbot", | ||
"rust-embedded-bot", | ||
"rust-highfive", | ||
"rust-lang-core-team-agenda-bot", | ||
"rust-lang-glacier-bot", | ||
"rust-lang-owner", | ||
"rust-timer", | ||
"rustbot", | ||
|
||
# Infra admins. | ||
"jdno", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
"marcoieni", | ||
"Mark-Simulacrum", | ||
"pietroalbini", | ||
|
||
# Ferrous systems employees who manage the github sponsors | ||
# for rust-analyzer. | ||
"missholmes", | ||
"skade", | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
use std::collections::BTreeSet; | ||
|
||
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 commentThe 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 |
||
pub struct Config { | ||
pub allowed_org_members: BTreeSet<String>, | ||
} | ||
|
||
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)] | ||
#[serde(rename_all = "snake_case")] | ||
pub enum TeamKind { | ||
|
Uh oh!
There was an error while loading. Please reload this page.
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 justspecial-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