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

Commit 7be424f

Browse files
committed
Order and add omitempty as this is a request struct
1 parent 42b5002 commit 7be424f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validate.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ func (s *ValidateService) ProjectNamespaceLint(pid interface{}, opt *ProjectName
121121
// GitLab API docs:
122122
// https://docs.gitlab.com/ee/api/lint.html#validate-a-projects-ci-configuration
123123
type ProjectLintOptions struct {
124+
ContentRef *string `url:"content_ref,omitempty" json:"content_ref,omitempty"`
125+
DryRunRef *string `url:"dry_run_ref,omitempty" json:"dry_run_ref,omitempty"`
124126
DryRun *bool `url:"dry_run,omitempty" json:"dry_run,omitempty"`
125127
IncludeJobs *bool `url:"include_jobs,omitempty" json:"include_jobs,omitempty"`
126128
Ref *string `url:"ref,omitempty" json:"ref,omitempty"`
127-
ContentRef *string `url:"content_ref" json:"content_ref,omitempty"`
128-
DryRunRef *string `url:"dry_run_ref" json:"dry_run_ref,omitempty"`
129129
}
130130

131131
// ProjectLint validates .gitlab-ci.yml content by project.

0 commit comments

Comments
 (0)