xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.36k stars 935 forks source link

Support additional arguments in GetFileBlame() call #1879

Closed assembly-winston closed 6 months ago

assembly-winston commented 6 months ago

Since the GetFileBlame() API was created, a new option to specify the range of lines to get blame info has been added. https://docs.gitlab.com/ee/api/repository_files.html#get-file-blame-from-repository

The library's current API does not yet support this -- the only supported argument is the Ref.

type GetFileBlameOptions struct {
    Ref *string `url:"ref,omitempty" json:"ref,omitempty"`
}

We can add the additional arguments.