diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-04 13:19:53 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-04 13:37:39 +0200 |
| commit | 882029d9c62c54293147da0d5e2d3b6eaaa89535 (patch) | |
| tree | 69e240b8fa4e65d37854043da211d5e57034ac9c /lib/api/entities.rb | |
| parent | fff69bdb97d9038976b8a5716238c796487dba50 (diff) | |
| download | gitlab-ce-882029d9c62c54293147da0d5e2d3b6eaaa89535.tar.gz | |
Expose ProjectHook attributes via API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/entities.rb')
| -rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 90cb69760a9..7daf8ace242 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -24,6 +24,10 @@ module API expose :id, :url, :created_at end + class ProjectHook < Hook + expose :project_id, :push_events, :issues_events, :merge_requests_events + end + class ForkedFromProject < Grape::Entity expose :id expose :name, :name_with_namespace |
