Commit Graph

4 Commits

Author SHA1 Message Date
078b3b8174 Make Gitea provider configurable with env vars and dynamic label fetching
- Extract Gitea URL, owner, repo from .git/config (synchronous parsing)
- Get authentication token from GITEA_TOKEN environment variable
- Dynamic label fetching from Gitea API with fallback to hardcoded IDs
- Add retry logic with exponential backoff for network errors
- Add validation for required configuration (token, URL, repo info)
- Better error messages for troubleshooting

Configuration:
- Set GITEA_TOKEN environment variable before running OpenClaw
- Automatically detects repo from git remote URL
- Fallback to hardcoded URL if git parsing fails

Known issues:
- Label transitions sometimes don't persist (edge case under investigation)
- Recommend manual label updates via Gitea UI if transition fails
2026-02-15 09:26:37 +00:00
30c4a9a088 Fix Gitea provider label transitions and error handling
- Fix label transition to use PUT /issues/{id}/labels endpoint (PATCH doesn't work)
- Add better error handling in apiRequest method
- Hardcode label IDs for reliability (temporary fix)
- Handle undefined exitCode from runCommand
- Update base URL to use public pfoster.dynu.net
2026-02-15 09:21:03 +00:00
862c600152 Update Gitea provider to use public URL 2026-02-15 08:59:51 +00:00
ff73115efc Initial commit: DevClaw with Gitea support 2026-02-15 08:58:46 +00:00