Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.

Commit 28c9f3a

Browse files
authored
Add an init method which fetches projects list
1 parent 269b484 commit 28c9f3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

botbot_plugins/plugins/jira.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ class Plugin(BasePlugin):
2020
jira:{{projectname}}-{{issuenumber}}
2121
"""
2222
config_class = Config
23+
24+
def __init__(self, *args, **kwargs):
25+
"""Initializes plugin and fetches projects list""
26+
27+
super(Plugin, self).__init__(self, *args, **kwargs)
28+
update_projects(self, None)
29+
2330
2431
@listens_to_all(ur'(?:.*)\b(?P<project>\w+)-(?P<issue>\d+)\b(?:.*)')
2532
def issue_lookup(self, line, project, issue):

0 commit comments

Comments
 (0)