forked from gsingers/slack-jira-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.js
33 lines (30 loc) · 930 Bytes
/
config-example.js
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
var slackbot = require('./lib/bot');
var config = {
showIssueDetails: true,
bot_name: "",//Provide the name to post under
token: 'XXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXX',
jira_urls: {
"SOLR": {
url: "https://issues.apache.org/jira/browse/",
jira: {//OPTIONAL: provide access to jira credentials for a particular repository
user: 'foo.bar',
password: 's3kR3t',
host: 'jira.foobar.com',
protocol: 'https',
port: 443,
version: '2',
strictSSL: true
}
},
"GRANT": {url:"http://grant.jira.server/jira/browse/"},
"DEFAULT": {url: "https://default.jira.server/browse/"}
},
projects: ["REPLACE", "ME", "WITH", "YOUR", "PROJECT", "NAMES"],
post: true,
verbose: true,
emoji: ":jira:",
link_separator: ", "// use \n if you want new lines
};
//DO NOT EDIT BELOW HERE
var slackbot = new slackbot.Bot(config);
slackbot.run();