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

Add SIG-Rust #5

Merged
merged 4 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions memberships.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,18 @@ in
users.raf
];
}
{
sig = sigs.rust;
leaders = with users; [ ];
members = with users; [
aprl
austreelis
bbjubjub
c8h4
eri
evanrichter
jalil
liketechnik
];
}
]
14 changes: 12 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
{ mkShellNoCC, python3, ... }:
mkShellNoCC { packages = [ (python3.withPackages (pyPkgs: [ pyPkgs.pydiscourse ])) ]; }
{
mkShellNoCC,
python3,
nixfmt-rfc-style,
...
}:
mkShellNoCC {
packages = [
nixfmt-rfc-style
(python3.withPackages (pyPkgs: [ pyPkgs.pydiscourse ]))
];
}
2 changes: 1 addition & 1 deletion sigmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def reconcile_forum_accounts():
forum_client = pydiscourse.DiscourseClient(api_key=forum_api_key, host=forum_base_url, api_username=forum_api_username)

for sig in sigs:
group_name = sig["sig"]["forum"]
group_name = sig["sig"]["forum"]["name"]
group_id = forum_client.group(group_name)["group"]["id"]

should_be = extract_accounts("forum", sig["leaders"], sig["members"])
Expand Down
12 changes: 11 additions & 1 deletion sigs.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
documentation = {
forum = "admins";
forum = {
name = "sig_documentation";
owners = "sig_docs_owners";
};
github = "sig-documentation";
};
rust = {
forum = {
owners = "sig_rs_owners";
name = "sig_rust";
};
github = "sig-rust";
};
}
8 changes: 8 additions & 0 deletions users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,12 @@
srestegosaurio = {
forum = "srestegosaurio";
};
austreelis = {
forum = "austreelis";
github = "Austreelis";
};
jalil = {
forum = "jalil";
github = "jalil-salame";
};
}