-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.rb
More file actions
34 lines (28 loc) · 1.13 KB
/
init.rb
File metadata and controls
34 lines (28 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'redmine'
# Setup the plugin
Redmine::Plugin.register :redmine_github_pull_requests_tool do
name 'Github Pull Requests Tool for Redmine plugin'
author 'MoneyPark AG'
description 'Provides Github Pull Request integration with Redmine and writes data to custom fields'
version '0.2.1'
url 'https://github.com/moneypark/redmine_github_pull_requests_tool'
author_url 'https://github.com/moneypark/'
requires_redmine version_or_higher: '3.4'
settings(
default: {
github_login_name_field_id: 0,
pr_reviewers_field_id: 0,
pr_targeted_branches_field_id: 0,
issue_id_scan_pattern: "^task[ _\\-](\\d+).*$",
github_webhook_api_secret: 'YOUR-WEBHOOK-API-SECRET',
},
partial: 'settings/pull_requests_tool_settings'
)
end
unless Issue.included_modules.include? RedmineGithubPullRequestsTool::IssuePatch
Issue.send :include, RedmineGithubPullRequestsTool::IssuePatch
end
unless User.included_modules.include? RedmineGithubPullRequestsTool::UserPatch
User.send :include, RedmineGithubPullRequestsTool::UserPatch
end
require File.expand_path 'lib/redmine_github_pull_requests_tool/hooks', __dir__