Skip to content

rabem00/gitea-api-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitea-client

Using gitea-sdk golang package to create content in gitea. Only some API endpoints are used, because this is only used for a specific project.

Usage:
% ./gitea-api-golang                                           
Expected a subcommand:
listrepos         - list repositories of an organisation
createorg         - to create an organisation
createorgrepo     - to create a repository in an organisation
createteam        - to create a team in an organisation
createuserpub     - to add a public key to an user
branchprotection  - to add branch protection for a repo
addteamrepo       - to add a repository to a team
addteammember     - to add a member to a team
removeteamrepo    - to remove a repository to a team
removeteammember  - to remove a member to a team

% ./gitea-api-golang createorg
Usage of createorg:
  -d string
        Workspace (eq organisation) description.
  -o string
        Create a workspace (eq organisation).


% ./gitea-api-golang createorg -o myorg -d "My organisation"

About

Using golang gitea-sdk to connect with Gitea API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages