Skip to content

Commit c4ea35d

Browse files
committed
ISSHA-1700 add JIRA_USERNAME support
1 parent d6d764a commit c4ea35d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pyconjpbot/plugins/pycamp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,13 @@ def create_issue(template, params, parent=None, area=None):
111111
# issue を作成する
112112
issue = jira.create_issue(fields=issue_dict)
113113
# JIRA bot を watcher からはずす
114-
jira.remove_watcher(issue, settings.JIRA_USER)
114+
jira.remove_watcher(issue, settings.JIRA_USERNAME)
115115
# コアスタッフを watcher に追加
116116
for watcher in CORE_STAFFS:
117117
jira.add_watcher(issue, watcher)
118+
119+
import pdb
120+
pdb.set_trace()
118121
return issue
119122

120123

slackbot_settings.py.sample

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ JIRA_PROJECTS = ['ISSHA', 'SAR', 'TRI', 'INU'] # JIRA Project Keys
2222
JIRA_DEFAULT_PROJECT = 'INU' # JIRA Default Project Key
2323

2424
# see https://docs.google.com/spreadsheets/d/1YiqErBDdp5QWfTlfDmxc6Vi696b_NGFJKzuyM-v6PDM/edit#gid=0
25-
JIRA_USER = '<JIRA Username>'
26-
JIRA_PASS = '<JIRA Password>'
25+
# https://id.atlassian.com/manage/api-tokens でトークンを生成
26+
JIRA_USERNAME = '<JIRA Username>'
27+
JIRA_USER = '<JIRA Email>'
28+
JIRA_PASS = '<JIRA API Token>'
2729

2830
# Settings for translator plugin
2931
# https://www.microsoft.com/ja-jp/translator/getstarted.aspx

0 commit comments

Comments
 (0)