Unverified Commit 2d67eb55 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

[Jobs] Limit comments to 80 chars, remove omitempty as the field is required

Co-Authored-By: 's avatarjulienroland <roland.julien.perso@gmail.com>
parent 61b5c254
......@@ -178,23 +178,25 @@ func (s *JobsService) GetJobArtifacts(pid interface{}, jobID int, options ...Opt
return artifactsBuf, resp, err
}
// DownloadArtifactsFileOptions represents the available DownloadArtifactsFile() options.
// DownloadArtifactsFileOptions represents the available DownloadArtifactsFile()
// options.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/jobs.html#download-the-artifacts-file
// GitLab API docs:
// https://docs.gitlab.com/ce/api/jobs.html#download-the-artifacts-file
type DownloadArtifactsFileOptions struct {
Job *string `url:"job,omitempty" json:"job,omitempty"`
Job *string `url:"job" json:"job"`
}
// DownloadArtifactsFile download the artifacts file from the given
// reference name and job provided the job finished successfully.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/jobs.html#download-the-artifacts-file
// GitLab API docs:
// https://docs.gitlab.com/ce/api/jobs.html#download-the-artifacts-file
func (s *JobsService) DownloadArtifactsFile(pid interface{}, refName string, opt *DownloadArtifactsFileOptions, options ...OptionFunc) (io.Reader, *Response, error) {
project, err := parseID(pid)
if err != nil {
return nil, nil, err
}
u := fmt.Sprintf("projects/%s/jobs/artifacts/%s/download", url.QueryEscape(project), refName)
req, err := s.client.NewRequest("GET", u, opt, options)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment