mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-17 06:01:10 +00:00
Forgot to gofmt
This commit is contained in:
@@ -8,9 +8,9 @@ import (
|
|||||||
// for publishing build artifacts when
|
// for publishing build artifacts when
|
||||||
// a Build has succeeded
|
// a Build has succeeded
|
||||||
type Publish struct {
|
type Publish struct {
|
||||||
S3 *S3 `yaml:"s3,omitempty"`
|
S3 *S3 `yaml:"s3,omitempty"`
|
||||||
Swift *Swift `yaml:"swift,omitempty"`
|
Swift *Swift `yaml:"swift,omitempty"`
|
||||||
PyPI *PyPI `yaml:"pypi,omitempty"`
|
PyPI *PyPI `yaml:"pypi,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Publish) Write(f *buildfile.Buildfile) {
|
func (p *Publish) Write(f *buildfile.Buildfile) {
|
||||||
|
@@ -29,9 +29,9 @@ fi
|
|||||||
`
|
`
|
||||||
|
|
||||||
type PyPI struct {
|
type PyPI struct {
|
||||||
Username string `yaml:"username,omitempty"`
|
Username string `yaml:"username,omitempty"`
|
||||||
Password string `yaml:"password,omitempty"`
|
Password string `yaml:"password,omitempty"`
|
||||||
Formats []string `yaml:"formats,omitempty"`
|
Formats []string `yaml:"formats,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PyPI) Write(f *buildfile.Buildfile) {
|
func (p *PyPI) Write(f *buildfile.Buildfile) {
|
||||||
@@ -62,5 +62,5 @@ func (p *PyPI) BuildFormatStr() string {
|
|||||||
for i := range p.Formats {
|
for i := range p.Formats {
|
||||||
fmtStr += p.Formats[i] + ","
|
fmtStr += p.Formats[i] + ","
|
||||||
}
|
}
|
||||||
return fmtStr[:len(fmtStr) - 1]
|
return fmtStr[:len(fmtStr)-1]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user