Skip to content

Add `--assets-links` option

Etienne Baqué requested to merge 66-add-assets-links into master

Relates to #66 (closed)

This MR adds the --assets-links option to bin/release-cli create. This allows to pass multiple assets within one option when creating a release.

--assets-links does not replace --assets-link. This means that assets passed through --assets-links should be added on top of what's passed through --assets-link.

Manual testing

bin/release-cli --server-url "http://gitlab.local:3000" --private-token "<private_token>" --project-id 6 create
--description "test asset" --tag-name "v1.5.2" 
--assets-link '{"name":"asset1", "url":"https://gitlab.com/gitlab-org/release-cli"}'
--assets-links '[{"name":"asset2", "url":"https://gitlab.com/gitlab-org"}, {"name":"asset3", "url":"https://gitlab.com/"}]'

Screenshot_from_2021-06-17_17-15-17

Screenshot_from_2021-06-17_17-17-31

Edited by Etienne Baqué

Merge request reports