From 7be424ff4df9fffe6fc44a8390d99230e30c1d0c Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Sat, 23 Mar 2024 10:52:42 +0100 Subject: [PATCH] Order and add omitempty as this is a request struct --- validate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validate.go b/validate.go index d92bba849..cb79ac838 100644 --- a/validate.go +++ b/validate.go @@ -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.