mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-24 11:02:42 +00:00
[FEAT] add Forgero Git Service
Signed-off-by: cassiozareck <cassiomilczareck@gmail.com> (cherry picked from commita878adfe62) Adding description and Forgejo SVG (cherry picked from commit13738c0380) Undo reordering and tmpl redirection (cherry picked from commit9ae51c46f4) (cherry picked from commit70fffdc61d) (cherry picked from commitc0ebfa9da3) (cherry picked from commit9922c92787) (cherry picked from commit00c0effbc7) (cherry picked from commite4c9525b13) (cherry picked from commit09d7b83211) (cherry picked from commitbbcd5975c9) (cherry picked from commit55c70a0e18) (cherry picked from commit0a55a2f382) (cherry picked from commitae6b468516) (cherry picked from commit76adcdff43)
This commit is contained in:
parent
9e542dcb30
commit
2934f1c7d6
7 changed files with 29 additions and 1 deletions
|
|
@ -287,6 +287,7 @@ const (
|
|||
OneDevService // 6 onedev service
|
||||
GitBucketService // 7 gitbucket service
|
||||
CodebaseService // 8 codebase service
|
||||
ForgejoService // 9 forgejo service
|
||||
)
|
||||
|
||||
// Name represents the service type's name
|
||||
|
|
@ -312,6 +313,8 @@ func (gt GitServiceType) Title() string {
|
|||
return "GitBucket"
|
||||
case CodebaseService:
|
||||
return "Codebase"
|
||||
case ForgejoService:
|
||||
return "Forgejo"
|
||||
case PlainGitService:
|
||||
return "Git"
|
||||
}
|
||||
|
|
@ -353,7 +356,7 @@ type MigrateRepoOptions struct {
|
|||
// TokenAuth represents whether a service type supports token-based auth
|
||||
func (gt GitServiceType) TokenAuth() bool {
|
||||
switch gt {
|
||||
case GithubService, GiteaService, GitlabService:
|
||||
case GithubService, GiteaService, GitlabService, ForgejoService:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
@ -364,6 +367,7 @@ func (gt GitServiceType) TokenAuth() bool {
|
|||
var SupportedFullGitService = []GitServiceType{
|
||||
GithubService,
|
||||
GitlabService,
|
||||
ForgejoService,
|
||||
GiteaService,
|
||||
GogsService,
|
||||
OneDevService,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue