mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 13:21:00 +00:00
31 lines
472 B
Go
31 lines
472 B
Go
package gitlab
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/apricote/releaser-pleaser/internal/forge"
|
|
)
|
|
|
|
// var _ forge.Forge = &GitLab{}
|
|
|
|
type GitLab struct {
|
|
options forge.Options
|
|
}
|
|
|
|
func (g *GitLab) autodiscover() {
|
|
// Read settings from GitLab-CI env vars
|
|
}
|
|
|
|
func New(options forge.Options) *GitLab {
|
|
gl := &GitLab{
|
|
options: options,
|
|
}
|
|
|
|
gl.autodiscover()
|
|
|
|
return gl
|
|
}
|
|
|
|
func (g *GitLab) RepoURL() string {
|
|
return fmt.Sprintf("https://gitlab.com/%s", g.options.Repository)
|
|
}
|