diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-01-02 04:40:33 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-01-04 16:17:02 +0300 |
commit | 66755c9ed506af9f51022a678ed26e5d31ee87ac (patch) | |
tree | ae453c58166702161f7544e74995c43822017deb /app/services/releases | |
parent | b4f4edd4eed2e469c2b19a12166232f48eaf2181 (diff) |
Support CURD operation for release asset links
- Add Releases::Links model
- Expose it in release API
- Add integration tests
Diffstat (limited to 'app/services/releases')
-rw-r--r-- | app/services/releases/create_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/releases/create_service.rb b/app/services/releases/create_service.rb index 73fcebf79af..1590d9137cc 100644 --- a/app/services/releases/create_service.rb +++ b/app/services/releases/create_service.rb @@ -43,7 +43,8 @@ module Releases description: description, author: current_user, tag: tag.name, - sha: tag.dereferenced_target.sha + sha: tag.dereferenced_target.sha, + links_attributes: params[:links_attributes] || [] ) success(tag: tag, release: release) |