Use Forgejo API for scraper installer #3

Merged
hand merged 1 commit from marvin/feat-forgejo-installer into main 2026-03-23 01:35:34 +00:00
Owner

Changes

  • New config key installer.base_url (default: https://git.yak-shaver.club)
  • Default installer.user changed from metafates to mangal2
  • API calls now use Forgejo-compatible /api/v1/repos/ endpoint
  • Scraper view URLs use Forgejo format (/src/branch/ instead of /blob/)

This allows mangal sources install to browse and install scrapers from our self-hosted Forgejo instance.

Users can still point to GitHub or any other Forgejo/Gitea instance by changing installer.base_url and installer.user in config.

## Changes - New config key `installer.base_url` (default: `https://git.yak-shaver.club`) - Default `installer.user` changed from `metafates` to `mangal2` - API calls now use Forgejo-compatible `/api/v1/repos/` endpoint - Scraper view URLs use Forgejo format (`/src/branch/` instead of `/blob/`) This allows `mangal sources install` to browse and install scrapers from our self-hosted Forgejo instance. Users can still point to GitHub or any other Forgejo/Gitea instance by changing `installer.base_url` and `installer.user` in config.
feat(installer): use Forgejo API and self-hosted scrapers by default
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
d41305c894
Replace hardcoded GitHub API URL with configurable Forgejo-compatible API:
- Add InstallerBaseURL key (installer.base_url) defaulting to git.yak-shaver.club
- Update collect() to use Forgejo API: {base_url}/api/v1/repos/{user}/{repo}/git/trees/{branch}
- Update GithubURL() to use Forgejo URL format (/src/branch/ instead of /blob/)
- Change default InstallerUser from 'metafates' to 'mangal2'
- Increment DefinedFieldsCount from 62 to 63

Users can override installer.base_url to point at any Forgejo or GitHub instance.
hand merged commit d41305c894 into main 2026-03-23 01:35:34 +00:00
hand deleted branch marvin/feat-forgejo-installer 2026-03-23 01:35:35 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mangal2/mangal!3
No description provided.