Skip to content

Commit

Permalink
Merge pull request #14 from k-kinzal/fixes-enable-checks
Browse files Browse the repository at this point in the history
fixes not passing EnableChecks to api.PullsOption
  • Loading branch information
k-kinzal authored Nov 18, 2019
2 parents 2e29286 + 78a31c1 commit 8cb677e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/pr/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func Check(owner string, repo string, opt *CheckOption) ([]*api.PullRequest, err
EnableReviews: opt.EnableReviews,
EnableCommits: opt.EnableCommits,
EnableStatuses: true,
EnableChecks: opt.EnableChecks,
Rules: rules.SearchRules(),
}
pulls, err := client.GetPulls(ctx, owner, repo, pullOption)
Expand Down
1 change: 1 addition & 0 deletions pkg/pr/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func Merge(owner string, repo string, opt *MergeOption) ([]*api.PullRequest, err
EnableReviews: opt.EnableReviews,
EnableCommits: opt.EnableCommits,
EnableStatuses: opt.EnableStatuses,
EnableChecks: opt.EnableChecks,
Rules: api.NewPullRequestRules(opt.Rules, opt.Limit),
}
pulls, err := client.GetPulls(ctx, owner, repo, pullOption)
Expand Down
1 change: 1 addition & 0 deletions pkg/pr/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func Validate(owner string, repo string, opt *ListOption) ([]ValidationResult, [
EnableReviews: opt.EnableReviews,
EnableCommits: opt.EnableCommits,
EnableStatuses: opt.EnableStatuses,
EnableChecks: opt.EnableChecks,
Rules: api.NewPullRequestRules([]string{opt.Rules[0]}, opt.Limit),
}
pulls, err := client.GetPulls(ctx, owner, repo, pullOption)
Expand Down

0 comments on commit 8cb677e

Please sign in to comment.