Add GitHub support
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user