feat(blogo,gitea): add owner, repo, ref to plugin initialization
This commit is contained in:
@@ -32,6 +32,7 @@ type plugin struct {
|
|||||||
|
|
||||||
owner string
|
owner string
|
||||||
repo string
|
repo string
|
||||||
|
ref string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Opts struct {
|
type Opts struct {
|
||||||
@@ -71,6 +72,10 @@ func New(owner, repo, apiUrl string, opts ...Opts) blogo.Plugin {
|
|||||||
|
|
||||||
return &plugin{
|
return &plugin{
|
||||||
client: client,
|
client: client,
|
||||||
|
|
||||||
|
owner: owner,
|
||||||
|
repo: repo,
|
||||||
|
ref: opt.Ref,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user