diff --git a/repos/rust-lang/cc-rs.toml b/repos/rust-lang/cc-rs.toml new file mode 100644 index 000000000..34c8242d8 --- /dev/null +++ b/repos/rust-lang/cc-rs.toml @@ -0,0 +1,10 @@ +org = 'rust-lang' +name = 'cc-rs' +description = 'Rust library for build scripts to compile C/C++ code into a Rust library' +bots = [] + +[access.teams] +crate-maintainers = 'maintain' + +[[branch]] +name = 'main' diff --git a/repos/rust-lang/cfg-if.toml b/repos/rust-lang/cfg-if.toml new file mode 100644 index 000000000..473e146f0 --- /dev/null +++ b/repos/rust-lang/cfg-if.toml @@ -0,0 +1,7 @@ +org = 'rust-lang' +name = 'cfg-if' +description = 'A if/elif-like macro for Rust #[cfg] statements' +bots = [] + +[access.teams] +crate-maintainers = 'maintain' diff --git a/repos/rust-lang/cmake-rs.toml b/repos/rust-lang/cmake-rs.toml new file mode 100644 index 000000000..d976ec542 --- /dev/null +++ b/repos/rust-lang/cmake-rs.toml @@ -0,0 +1,7 @@ +org = 'rust-lang' +name = 'cmake-rs' +description = 'Rust build dependency for running cmake' +bots = [] + +[access.teams] +crate-maintainers = 'maintain' diff --git a/repos/rust-lang/compiler-builtins.toml b/repos/rust-lang/compiler-builtins.toml new file mode 100644 index 000000000..f9602cc6e --- /dev/null +++ b/repos/rust-lang/compiler-builtins.toml @@ -0,0 +1,10 @@ +org = 'rust-lang' +name = 'compiler-builtins' +description = 'Porting `compiler-rt` intrinsics to Rust' +bots = [] + +[access.teams] +crate-maintainers = 'maintain' + +[[branch]] +name = 'master' diff --git a/repos/rust-lang/glob.toml b/repos/rust-lang/glob.toml new file mode 100644 index 000000000..d3e63a781 --- /dev/null +++ b/repos/rust-lang/glob.toml @@ -0,0 +1,7 @@ +org = 'rust-lang' +name = 'glob' +description = 'Support for matching file paths against Unix shell style patterns.' +bots = [] + +[access.teams] +crate-maintainers = 'maintain' diff --git a/repos/rust-lang/libc.toml b/repos/rust-lang/libc.toml new file mode 100644 index 000000000..706196d6e --- /dev/null +++ b/repos/rust-lang/libc.toml @@ -0,0 +1,14 @@ +org = 'rust-lang' +name = 'libc' +description = 'Raw bindings to platform APIs for Rust' +bots = [ + 'bors', + 'highfive', + 'rustbot', +] + +[access.teams] +crate-maintainers = 'maintain' + +[[branch]] +name = 'master' diff --git a/repos/rust-lang/libm.toml b/repos/rust-lang/libm.toml new file mode 100644 index 000000000..f9833f612 --- /dev/null +++ b/repos/rust-lang/libm.toml @@ -0,0 +1,7 @@ +org = 'rust-lang' +name = 'libm' +description = "A port of MUSL's libm to Rust." +bots = [] + +[access.teams] +crate-maintainers = 'maintain' diff --git a/repos/rust-lang/libz-sys.toml b/repos/rust-lang/libz-sys.toml new file mode 100644 index 000000000..235206997 --- /dev/null +++ b/repos/rust-lang/libz-sys.toml @@ -0,0 +1,7 @@ +org = 'rust-lang' +name = 'libz-sys' +description = 'Rust crate package to link to a system libz (zlib)' +bots = [] + +[access.teams] +crate-maintainers = 'maintain' diff --git a/repos/rust-lang/log.toml b/repos/rust-lang/log.toml new file mode 100644 index 000000000..420dbc33a --- /dev/null +++ b/repos/rust-lang/log.toml @@ -0,0 +1,7 @@ +org = 'rust-lang' +name = 'log' +description = 'Logging implementation for Rust' +bots = [] + +[access.teams] +crate-maintainers = 'maintain' diff --git a/src/main.rs b/src/main.rs index 1de672afc..7b69e587d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -167,21 +167,21 @@ fn run() -> Result<(), Error> { info!("written data to {}", file); } Cli::AddRepo { org, name } => { - #[derive(serde::Serialize)] + #[derive(serde::Serialize, Debug)] #[serde(rename_all = "kebab-case")] struct AccessToAdd { teams: HashMap, } - #[derive(serde::Serialize)] + #[derive(serde::Serialize, Debug)] #[serde(rename_all = "kebab-case")] struct BranchToAdd { name: String, #[serde(skip_serializing_if = "Option::is_none")] - ci_checks: Option>, - #[serde(skip_serializing_if = "Option::is_none")] dismiss_stale_review: Option, + #[serde(skip_serializing_if = "Option::is_none")] + ci_checks: Option>, } - #[derive(serde::Serialize)] + #[derive(serde::Serialize, Debug)] #[serde(rename_all = "kebab-case")] struct RepoToAdd<'a> { org: &'a str, @@ -189,12 +189,13 @@ fn run() -> Result<(), Error> { description: &'a str, bots: Vec, access: AccessToAdd, + #[serde(skip_serializing_if = "Vec::is_empty")] branch: Vec, } let github = github::GitHubApi::new(); let repo = match github.repo(&org, &name)? { Some(r) => r, - None => failure::bail!("The repo '{org}/{name}' was not found on GitHub"), + None => failure::bail!("The repo '{}/{}' was not found on GitHub", org, name), }; let mut teams = HashMap::new(); let mut bots = Vec::new();