Skip to content

[12.1] Add Projects::downloadUpload() for the markdown uploads download endpoint - #903

Open
Maxcastel wants to merge 1 commit into
GitLabPHP:12.1from
Maxcastel:feat/download-project-markdown-upload
Open

Maxcastel wants to merge 1 commit into
GitLabPHP:12.1from
Maxcastel:feat/download-project-markdown-upload

Conversation

@Maxcastel

Copy link
Copy Markdown

GitLab's Project Markdown Uploads API exposes a "download an uploaded file by secret and filename" endpoint (GET /projects/:id/uploads/:secret/:filename), but the lib only implemented the matching "create an upload" endpoint (uploadFile()).

This PR adds Projects::downloadUpload(), following the same binary-download convention already used by Jobs::artifacts() (returns a PSR-7 StreamInterface via getAsResponse()->getBody()), plus a unit test.

https://github.com/Maxcastel/migrate-gitlab-mr-to-github-pr/blob/main/src/Client/GitLab/Api/MarkdownUploads.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant