#8 delete cobra, add micro-config-flag #11

Merged
vtolstov merged 53 commits from kgorbunov/pkgdash:master into master 2024-04-02 22:54:17 +03:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 6a6829e82e - Show all commits

View File

@ -143,7 +143,7 @@ func (g *Gitea) RequestOpen(ctx context.Context, branch string, path string, mod
logger.Error(ctx, fmt.Sprintf("GetPulls error: %s", err))
return err
}
logger.Info(ctx, "len: ", len(pulls))
for _, pull := range pulls {
logger.Debugf(ctx, fmt.Sprintf("PULL title - %s | ref - %s", pull.Title, pull.Base.Ref))
if strings.Contains(pull.Title, path) && strings.Contains(pull.Base.Ref, branch) {
@ -410,7 +410,7 @@ func GetPulls(ctx context.Context, url, owner, repo, token string) ([]*giteaPull
req, err := http.NewRequestWithContext(
ctx,
http.MethodGet,
fmt.Sprintf("https://%s/api/v1//repos/%s/%s/pulls?state=open&token=%s", url, owner, repo, token),
fmt.Sprintf("https://%s/api/v1//repos/%s/%s/pulls?state=open&page=99&token=%s", url, owner, repo, token),
nil)
if err != nil {
return nil, err