diff --git a/client/client.go b/client/client.go index 880f1c8..67094eb 100644 --- a/client/client.go +++ b/client/client.go @@ -61,6 +61,7 @@ func (g *gitlabClientImpl) ListMrsWithLabel(label string) ([]*gitlab.MergeReques }, State: gitlab.Ptr("opened"), Labels: &labels, + Scope: gitlab.Ptr("all"), WithMergeStatusRecheck: gitlab.Ptr(true), } var allMrs []*gitlab.MergeRequest diff --git a/task/task.go b/task/task.go index 2ed1d04..2c75842 100644 --- a/task/task.go +++ b/task/task.go @@ -70,6 +70,7 @@ func (t Task) Run() error { return fmt.Errorf("failed to list MRs: %w", err) } + log.Printf("Processing %d MRs with label...\n", len(mrs)) errs := make([]error, 0) for _, mr := range mrs { err := t.processMR(mr)