forked from suer/redmine_webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.rb
More file actions
20 lines (19 loc) · 728 Bytes
/
init.rb
File metadata and controls
20 lines (19 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if Rails.try(:autoloaders).try(:zeitwerk_enabled?)
Rails.autoloaders.main.push_dir File.dirname(__FILE__) + '/lib/redmine_webhook'
RedmineWebhook::ProjectsHelperPatch
RedmineWebhook::WebhookListener
else
require "redmine_webhook"
end
Redmine::Plugin.register :redmine_webhook do
name 'Redmine Webhook plugin'
author 'suer'
description 'A Redmine plugin posts webhook on creating and updating tickets'
version '0.0.6'
url 'https://github.com/suer/redmine_webhook'
author_url 'http://d.hatena.ne.jp/suer'
requires_redmine :version_or_higher => '4.0'
project_module :webhooks do
permission :manage_hook, {:webhook_settings => [:index, :show, :update, :create, :destroy]}, :require => :member
end
end