.
This commit is contained in:
parent
6e501c82bc
commit
262cc0ff91
@ -15,7 +15,7 @@ import (
|
|||||||
|
|
||||||
func (h *RequestHandler) allocateGiteaTransport() *transport.Runtime {
|
func (h *RequestHandler) allocateGiteaTransport() *transport.Runtime {
|
||||||
r := transport.New("src.opensuse.org", apiclient.DefaultBasePath, [](string){"https"})
|
r := transport.New("src.opensuse.org", apiclient.DefaultBasePath, [](string){"https"})
|
||||||
r.DefaultAuthentication = transport.BearerToken(h.GiteaToken)
|
r.DefaultAuthentication = transport.BearerToken(giteaToken)
|
||||||
r.SetDebug(true)
|
r.SetDebug(true)
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,6 @@ type Request struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RequestHandler struct {
|
type RequestHandler struct {
|
||||||
ObsToken, GiteaToken string
|
|
||||||
|
|
||||||
Error error
|
Error error
|
||||||
GitCommiter, GitPath string
|
GitCommiter, GitPath string
|
||||||
Branch []string
|
Branch []string
|
||||||
|
Loading…
Reference in New Issue
Block a user