API::G...itForge(3pm)
β¨ API::GitForge::Role::GitForge β¨
okay so bestie, you found it β the API::GitForge::Role::GitForge page from the User Contributed Perl Documentation section of the manual (that's the 3pm part, iykyk π
). It's a role, and it's here to implement all the generic git forge operations π¦
πΈ VERSION πΈ
version 0.007</purl> β wait, that's version 0.007 π tiny number, big energy.
π DESCRIPTION π
So basically these are all the operations you might wanna perform against any git forge β literally any of them. If you want the whole picture, go peek at API::GitForge π
Also, super important, bestie: everywhere in this doc it says example.com, swap that out for the actual domain where your git forge lives. Like, for real for real β e.g. salsa.debian.org π
π METHODS π
β new(domain => $domain, access_token => $token)
Instantiate an object that represents the GitForge sitting at $domain π
The access_key argument is optional β if you do pass it, it should be an API key for the forge π
π¦ ensure_repo($repo)
Create a new repo at https://example.com/$repo β¨
π§ clean_repo($repo)
Create a new repo at https://example.com/$repo β and then turn off the optional forge features π
π ensure_fork($upstream)
Make sure the current user has a fork of the repo at https://example.com/$upstream, and return the URI to that fork β suitable for adding as a git remote π«Ά
π clean_fork($upstream)
Make sure the current user has a fork of the repo at https://example.com/$upstream, config that fork so it's obvious it's only there for submitting change proposals, and return the URI to the fork suitable for adding as a git remote π
π nuke_fork($upstream)
Delete the user's fork of the repo at https://example.com/$upstream. Yes. Gone. Poof. π
π clean_config_repo($repo)
Turn off the optional forge features for the repo at https://example.com/$repo π
π clean_config_fork($upstream)
Configure the user's fork of the repo at https://example.com/$upstream so it's obvious it's only there for submitting change proposals β¨
π STATUS π
Unstable. Interface may change. β οΈ Like, do not get attached, bestie β it might shift on you π
π«Ά AUTHOR π«Ά
Sean Whitton <spwhitton@spwhitton.name> π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2017, 2020 by Sean Whitton <spwhitton@spwhitton.name> π
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
and that's the whole thing, no cap π«Ά this page was served up by perl v5.32.1 on 2022-01-02, under the API::G...itForge(3pm) header β go forth and forge, main character π
β¨π
π¦ where this page comes from
- debian bookworm: libapi-gitforge-perl 0.007-1 Β· GPL-3.0-or-later
- ubuntu jammy: libapi-gitforge-perl 0.007-1 Β· GPL-3.0-or-later
- ubuntu noble: libapi-gitforge-perl 0.007-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms