Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# 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:
|
||||
```bash
|
||||
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
|
||||
Reference in New Issue
Block a user