Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a9b74d54
Commit
a9b74d54
authored
Apr 06, 2021
by
Steve Abrams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add composer pull_package event
parent
eb05405a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
lib/api/composer_packages.rb
lib/api/composer_packages.rb
+2
-0
spec/requests/api/composer_packages_spec.rb
spec/requests/api/composer_packages_spec.rb
+1
-0
No files found.
lib/api/composer_packages.rb
View file @
a9b74d54
...
...
@@ -161,6 +161,8 @@ module API
not_found!
unless
metadata
track_package_event
(
'pull_package'
,
:composer
)
send_git_archive
unauthorized_user_project
.
repository
,
ref:
metadata
.
target_sha
,
format:
'zip'
,
append_sha:
true
end
end
...
...
spec/requests/api/composer_packages_spec.rb
View file @
a9b74d54
...
...
@@ -434,6 +434,7 @@ RSpec.describe API::ComposerPackages do
end
it_behaves_like
'process Composer api request'
,
params
[
:user_role
],
params
[
:expected_status
],
params
[
:member
]
it_behaves_like
'a package tracking event'
,
described_class
.
name
,
'pull_package'
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment