summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 0e940bca2c9..d228da192e4 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -544,6 +544,16 @@ class Project < ActiveRecord::Base
end
end
+ def hook_attrs
+ {
+ name: name,
+ ssh_url: ssh_url_to_repo,
+ http_url: http_url_to_repo,
+ namespace: namespace.name,
+ visibility_level: visibility_level
+ }
+ end
+
# Reset events cache related to this project
#
# Since we do cache @event we need to reset cache in special cases: