Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1793 from takp/add-report-type-to-projects
Browse files Browse the repository at this point in the history
Add report_type to CreateProjectLevelRuleOptions
  • Loading branch information
svanharmelen authored Sep 14, 2023
2 parents 0d372da + 3ff466f commit f410549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -1809,6 +1809,7 @@ func (s *ProjectsService) GetProjectApprovalRule(pid interface{}, ruleID int, op
type CreateProjectLevelRuleOptions struct {
Name *string `url:"name,omitempty" json:"name,omitempty"`
ApprovalsRequired *int `url:"approvals_required,omitempty" json:"approvals_required,omitempty"`
ReportType *string `url:"report_type,omitempty" json:"report_type,omitempty"`
RuleType *string `url:"rule_type,omitempty" json:"rule_type,omitempty"`
UserIDs *[]int `url:"user_ids,omitempty" json:"user_ids,omitempty"`
GroupIDs *[]int `url:"group_ids,omitempty" json:"group_ids,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,7 @@ func TestCreateProjectApprovalRule(t *testing.T) {
ApprovalsRequired: Int(3),
UserIDs: &[]int{5, 50},
GroupIDs: &[]int{5},
ReportType: String("code_coverage"),
}

rule, _, err := client.Projects.CreateProjectApprovalRule(1, opt)
Expand Down

0 comments on commit f410549

Please sign in to comment.