mirror of
https://github.com/cooperspencer/gickup.git
synced 2026-10-19 16:16:46 +00:00
/ on wrong position (#218)
This commit is contained in:
@@ -105,7 +105,7 @@ func getCommits(url, reponame, token string) (Commits, error) {
|
||||
|
||||
// getRefs TODO
|
||||
func getRefs(url, name, token string) (Refs, error) {
|
||||
body, err := doRequest(fmt.Sprintf("%s/%s/refs", url, name), token)
|
||||
body, err := doRequest(fmt.Sprintf("%s%s/refs", url, name), token)
|
||||
if err != nil {
|
||||
return Refs{}, err
|
||||
}
|
||||
@@ -142,13 +142,6 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
|
||||
ran := false
|
||||
repos := []types.Repo{}
|
||||
for _, repo := range conf.Source.Sourcehut {
|
||||
sub = logger.CreateSubLogger("stage", "sourcehut", "url", repo.URL)
|
||||
err := repo.Filter.ParseDuration()
|
||||
if err != nil {
|
||||
sub.Error().
|
||||
Msg(err.Error())
|
||||
}
|
||||
ran = true
|
||||
if repo.URL == "" {
|
||||
repo.URL = "https://git.sr.ht"
|
||||
}
|
||||
@@ -157,6 +150,14 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
|
||||
repo.URL += "/"
|
||||
}
|
||||
|
||||
sub = logger.CreateSubLogger("stage", "sourcehut", "url", repo.URL)
|
||||
err := repo.Filter.ParseDuration()
|
||||
if err != nil {
|
||||
sub.Error().
|
||||
Msg(err.Error())
|
||||
}
|
||||
ran = true
|
||||
|
||||
apiURL := fmt.Sprintf("%sapi/", repo.URL)
|
||||
|
||||
token := repo.GetToken()
|
||||
|
||||
Reference in New Issue
Block a user