#8 Finished the update I need to redo the call of these methods.
This commit is contained in:
@@ -1,15 +1,28 @@
|
||||
package gitlab
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.unistack.org/unistack-org/pkgdash/internal/configcli"
|
||||
"git.unistack.org/unistack-org/pkgdash/internal/modules"
|
||||
)
|
||||
|
||||
type Gitlab struct {
|
||||
Token string
|
||||
}
|
||||
|
||||
func NewGitlab(t string) *Gitlab {
|
||||
func NewGitlab(cfg configcli.Config) *Gitlab {
|
||||
return &Gitlab{
|
||||
Token: t,
|
||||
Token: cfg.Source.Token,
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Gitlab) RequestOpen() {}
|
||||
func (g *Gitlab) RequestClose() {}
|
||||
func (g *Gitlab) RequestUpdate() {}
|
||||
func (g *Gitlab) RequestOpen(ctx context.Context, branch string, path string, mod modules.Update) error {
|
||||
return nil
|
||||
}
|
||||
func (g *Gitlab) RequestClose(ctx context.Context, cfg *configcli.Config, branch string, path string) error {
|
||||
return nil
|
||||
}
|
||||
func (g *Gitlab) RequestUpdate(ctx context.Context, cfg *configcli.Config, branch string, path string, mod modules.Update) error {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user