0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-22 00:20:38 +00:00

fix: remove workaround for missing pipeline url (#38)

This commit is contained in:
Robert Kaussow 2023-12-06 10:14:10 +01:00 committed by GitHub
parent 2e7fbdc855
commit 1e98790015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -153,6 +153,7 @@ func currFromContext(c *cli.Context) Commit {
}
}
//nolint:dupl
func prevFlags(category string) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{

View File

@ -33,6 +33,7 @@ type Pipeline struct {
Parent int64
}
//nolint:dupl
func pipelineFlags(category string) []cli.Flag {
return []cli.Flag{
&cli.Int64Flag{
@ -54,10 +55,9 @@ func pipelineFlags(category string) []cli.Flag {
Category: category,
},
&cli.StringFlag{
Name: "pipeline.url",
Usage: "pipeline url",
// TODO: Revert after https://github.com/woodpecker-ci/woodpecker/issues/2219
// EnvVars: []string{"CI_PIPELINE_URL"},
Name: "pipeline.url",
Usage: "pipeline url",
EnvVars: []string{"CI_PIPELINE_URL"},
Category: category,
},
&cli.StringFlag{