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:
Lauris BH 2024-07-18 18:32:09 +00:00 committed by Lauris BH
parent 212153caee
commit 7ea01d1b3b

View File

@ -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",
}, },