- New script:
<domain>/github-<name>/github-<name>.sh - Modified:
lib/github-common.sh - Other:
export GITHUB_TOKEN=ghp_REDACTED
export ORG=test-org
./path/to/script.sh [--dry-run]-
set -euo pipefailis the first executable line after the# ===header - Script sources
lib/github-common.shviaSCRIPT_DIR - All required env vars validated with
require_env_var - Token validated with
validate_github_token(orvalidate_tokenfor secondary tokens) - User-supplied slugs validated with
validate_slug -
sleepadded between repo-level operations to respect rate limits - README.md updated with the new/changed script (env var table + usage example)
- Script header comment matches README documentation
- Tested on a non-production org before production
- shellcheck passes (
shellcheck --severity=warning --exclude=SC2034,SC1091 --shell=bash <script>)