@@ -111,7 +111,7 @@ func (p *GitLabProvider) ListBranches(ctx context.Context, opts Options) ([]Resu
111111 },
112112 }
113113 if opts .Filters .Include != nil {
114- glOpts .Regex = gitlab . Ptr (opts .Filters .Include .String ())
114+ glOpts .Regex = new (opts.Filters .Include .String ())
115115 }
116116
117117 results := make ([]Result , 0 )
@@ -155,7 +155,7 @@ func (p *GitLabProvider) ListRequests(ctx context.Context, opts Options) ([]Resu
155155 }
156156
157157 glOpts := & gitlab.ListProjectMergeRequestsOptions {
158- State : gitlab . Ptr ("opened" ),
158+ State : new ("opened "),
159159 Labels : labels ,
160160 ListOptions : gitlab.ListOptions {
161161 PerPage : 100 ,
@@ -221,9 +221,9 @@ func (p *GitLabProvider) ListEnvironments(ctx context.Context, opts Options) ([]
221221 // This is only available through the Deployments API.
222222 deployments , _ , err := p .Client .Deployments .ListProjectDeployments (p .Project , & gitlab.ListProjectDeploymentsOptions {
223223 ListOptions : gitlab.ListOptions {},
224- OrderBy : gitlab . Ptr ("created_at" ),
225- Sort : gitlab . Ptr ("desc" ),
226- Environment : gitlab . Ptr (env .Name ),
224+ OrderBy : new ("created_at "),
225+ Sort : new ("desc "),
226+ Environment : new (env.Name ),
227227 })
228228 if err != nil {
229229 return nil , fmt .Errorf (`could not list deployments for environment "%s": %v` , env .Name , err )
0 commit comments