Skip to content

Commit

Permalink
Order and add omitempty as this is a request struct
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen committed Mar 23, 2024
1 parent 42b5002 commit 7be424f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ func (s *ValidateService) ProjectNamespaceLint(pid interface{}, opt *ProjectName
// GitLab API docs:
// https://docs.gitlab.com/ee/api/lint.html#validate-a-projects-ci-configuration
type ProjectLintOptions struct {
ContentRef *string `url:"content_ref,omitempty" json:"content_ref,omitempty"`
DryRunRef *string `url:"dry_run_ref,omitempty" json:"dry_run_ref,omitempty"`
DryRun *bool `url:"dry_run,omitempty" json:"dry_run,omitempty"`
IncludeJobs *bool `url:"include_jobs,omitempty" json:"include_jobs,omitempty"`
Ref *string `url:"ref,omitempty" json:"ref,omitempty"`
ContentRef *string `url:"content_ref" json:"content_ref,omitempty"`
DryRunRef *string `url:"dry_run_ref" json:"dry_run_ref,omitempty"`
}

// ProjectLint validates .gitlab-ci.yml content by project.
Expand Down

0 comments on commit 7be424f

Please sign in to comment.