sysadmin ed63310b71 feat: parameterize create_pr.py and add PRGS remote
- argparse: --remote {dadeschools,prgs}, --title/--head/--base/--body,
  --body-file (or '-' for stdin), and --host/--org/--repo overrides.
- REMOTES table: dadeschools (gitea.dadeschools.net/Contractor) and
  prgs (gitea.prgs.cc/Scaled-Tech-Consulting).
- Print 'PR #N: <url>' on success; surface API error body on failure.
- Fix credential parsing to split('=', 1) so tokens containing '=' work.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 16:59:48 -04:00
2026-06-21 15:35:57 -04:00
2026-06-21 15:35:57 -04:00
2026-06-21 15:35:57 -04:00
2026-06-21 15:35:57 -04:00

Gitea Tools

A collection of Python and Bash scripts to automate interactions with Gitea instances.

Setup

A Python virtual environment is included. Activate it using:

source venv/bin/activate

Authentication

These scripts securely extract tokens from the macOS keychain to avoid hardcoding secrets.

  • Dade Schools (gitea.dadeschools.net): Retrieved via git credential fill. Ensure you have logged in via Git over HTTPS at least once so the keychain caches your credentials.
  • NetBridge / Personal (gitea.prgs.cc): Retrieved using security find-generic-password for the service netbridge-gitea-token.

Available Scripts

  • ./create_issue.py - Create an issue in the Gitea tracker
  • ./create_pr.py - Open a Pull Request from a branch via the API
  • ./create_pr.sh - Bash equivalent for creating a PR via the API
  • ./close_issue.sh - Close a specific issue via the API
S
Description
Python and Bash scripts to automate interactions with Gitea instances (issues, PRs, labels).
Readme 722 KiB
Languages
Python 92.8%
Shell 7.2%