mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 12:21:03 +00:00
20 lines
372 B
Go
20 lines
372 B
Go
package bitbucket
|
|
|
|
import (
|
|
"github.com/drone/drone/plugin/remote"
|
|
"github.com/drone/drone/shared/model"
|
|
)
|
|
|
|
func init() {
|
|
remote.Register(model.RemoteBitbucket, plugin)
|
|
}
|
|
|
|
func plugin(remote *model.Remote) remote.Remote {
|
|
return &Bitbucket{
|
|
URL: remote.URL,
|
|
API: remote.API,
|
|
Client: remote.Client,
|
|
Secret: remote.Secret,
|
|
Enabled: remote.Open,
|
|
}
|
|
}
|