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