Add GitHub support

This commit is contained in:
2024-01-18 11:09:54 -05:00
parent 4b2b251136
commit 9f66001a66
7 changed files with 189 additions and 0 deletions

View File

@ -20,9 +20,11 @@ type RemoteTypes []RemoteType
var (
RemoteTypeGitlab RemoteType = "gitlab"
RemoteTypeGitea RemoteType = "gitea"
RemoteTypeGithub RemoteType = "github"
RemoteTypesAll RemoteTypes = []RemoteType{
RemoteTypeGitea,
RemoteTypeGitlab,
RemoteTypeGithub,
}
)
@ -33,6 +35,8 @@ func GetRemoteTypeFromString(remoteType string) RemoteType {
rt = RemoteTypeGitea
case RemoteTypeGitlab.String():
rt = RemoteTypeGitlab
case RemoteTypeGithub.String():
rt = RemoteTypeGithub
}
return rt
}