mirror of
https://codeberg.org/woodpecker-plugins/go-plugin.git
synced 2024-11-24 22:35:39 +01:00
Add Forgejo forge type constant (#27)
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/27 Co-authored-by: Lauris BH <lauris@nix.lv> Co-committed-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
212153caee
commit
7ea01d1b3b
3
forge.go
3
forge.go
@ -20,6 +20,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ForgeTypeGitea = "gitea"
|
ForgeTypeGitea = "gitea"
|
||||||
|
ForgeTypeForgejo = "forgejo"
|
||||||
ForgeTypeGitHub = "github"
|
ForgeTypeGitHub = "github"
|
||||||
ForgeTypeGitLab = "gitlab"
|
ForgeTypeGitLab = "gitlab"
|
||||||
ForgeTypeBitbucket = "bitbucket"
|
ForgeTypeBitbucket = "bitbucket"
|
||||||
@ -38,7 +39,7 @@ func forgeFlags() []cli.Flag {
|
|||||||
return []cli.Flag{
|
return []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "forge.type",
|
Name: "forge.type",
|
||||||
Usage: "forge type (gitea, github, gitlab, bitbucket)",
|
Usage: "forge type (gitea, forgejo, github, gitlab, bitbucket)",
|
||||||
EnvVars: []string{
|
EnvVars: []string{
|
||||||
"CI_FORGE_TYPE",
|
"CI_FORGE_TYPE",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user