ed63310b71471286e413333394e8c8f22c2c6d22
- 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>
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-passwordfor the servicenetbridge-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
Description
Python and Bash scripts to automate interactions with Gitea instances (issues, PRs, labels).
Languages
Python
92.8%
Shell
7.2%