mirror of
https://github.com/thegeeklab/wp-plugin-go.git
synced 2024-11-25 09:30:39 +00:00
fix: remove workaround for missing pipeline url (#38)
This commit is contained in:
parent
2e7fbdc855
commit
1e98790015
@ -153,6 +153,7 @@ func currFromContext(c *cli.Context) Commit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:dupl
|
||||||
func prevFlags(category string) []cli.Flag {
|
func prevFlags(category string) []cli.Flag {
|
||||||
return []cli.Flag{
|
return []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
|
@ -33,6 +33,7 @@ type Pipeline struct {
|
|||||||
Parent int64
|
Parent int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:dupl
|
||||||
func pipelineFlags(category string) []cli.Flag {
|
func pipelineFlags(category string) []cli.Flag {
|
||||||
return []cli.Flag{
|
return []cli.Flag{
|
||||||
&cli.Int64Flag{
|
&cli.Int64Flag{
|
||||||
@ -56,8 +57,7 @@ func pipelineFlags(category string) []cli.Flag {
|
|||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "pipeline.url",
|
Name: "pipeline.url",
|
||||||
Usage: "pipeline url",
|
Usage: "pipeline url",
|
||||||
// TODO: Revert after https://github.com/woodpecker-ci/woodpecker/issues/2219
|
EnvVars: []string{"CI_PIPELINE_URL"},
|
||||||
// EnvVars: []string{"CI_PIPELINE_URL"},
|
|
||||||
Category: category,
|
Category: category,
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
|
Loading…
Reference in New Issue
Block a user