afe5d7d209
1) Adds a DB migration for all services to toggle on push, issue, and merge events. 2) Upon an issue or merge request event, fire service hooks. 3) Slack service supports custom messages for each of these events. Other services not supported at the moment. 4) Label merge request hooks with their corresponding actions.
8 lines
359 B
Ruby
8 lines
359 B
Ruby
class AddEventsToServices < ActiveRecord::Migration
|
|
def change
|
|
add_column :services, :push_events, :boolean, :default => true
|
|
add_column :services, :issues_events, :boolean, :default => true
|
|
add_column :services, :merge_requests_events, :boolean, :default => true
|
|
add_column :services, :tag_push_events, :boolean, :default => true
|
|
end
|
|
end
|