forked from mangal/mangal
Use Forgejo API for scraper installer #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "marvin/feat-forgejo-installer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
installer.base_url(default:https://git.yak-shaver.club)installer.userchanged frommetafatestomangal2/api/v1/repos/endpoint/src/branch/instead of/blob/)This allows
mangal sources installto 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_urlandinstaller.userin config.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.