Skip to content

Instantly share code, notes, and snippets.

View pierrotsmnrd's full-sized avatar
👨‍🏫
teaching python

Pierre-Olivier Simonard pierrotsmnrd

👨‍🏫
teaching python
View GitHub Profile
@pierrotsmnrd
pierrotsmnrd / add_maintainer_to_org_teams.sh
Created February 7, 2025 15:31
Add a maintainer to all teams of a GH org
#!/bin/bash
# Usage: ./add_maintainer_to_org_teams.sh [ORG NAME] [GITHUB HANDLE]
# Example: ./add_maintainer_to_org_teams.sh prusa3D pierrotsmnrd
# Ensure the script exits on error
set -e
# Check if DuckDB and gh CLI are installed
if ! command -v duckdb &>/dev/null; then
echo "Error: DuckDB is not installed. Install it first." >&2