Skip to content

Commit

Permalink
Merge pull request #10 from vshn/fix/scope
Browse files Browse the repository at this point in the history
Process all MRs, not just those opened by the associated user
  • Loading branch information
HappyTetrahedron authored Jul 12, 2024
2 parents a52f33e + 6294bbc commit 2d5c464
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d5c464

Please sign in to comment.