Skip to content

Commit da9f5f2

Browse files
committed
close: add python files to bot
1 parent 1efbe05 commit da9f5f2

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

.gitignore

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
chats
2-
chats.json
3-
__pycache__
41

2+
# python files
3+
__pycache__
54
venv/
65
bin/
7-
lib/
6+
lib/
7+
8+
9+
# Bot files
10+
./authmsg
11+
./token
12+
./offset
13+
chats
14+
chats.json

app.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ def generateIssueMsg(data):
104104
msg = '*{0}* new issue for *{2}*:\n'\
105105
.format(
106106
data['project']['name'],
107-
object_attributes['iid']
107+
object_attributes['iid'],
108108
assignees
109109
)
110110
elif action == 'reopen':
111111
assignees = getAssignees(data)
112112
msg = '*{0}* issue re-opened by *{1}* for *{2}*:\n'\
113113
.format(
114114
data['project']['name'],
115-
data['user']['name']
115+
data['user']['name'],
116116
assignees
117117
)
118118
elif action == 'close':
@@ -147,12 +147,12 @@ def generateCommentMsg(data):
147147
data['user']['name'],
148148
object_attributes["description"]
149149
)
150-
msg = msg + '\nIssue #{2} - [{0}]({1})'\
151-
.format(
152-
issue['title'],
153-
object_attributes['url'],
154-
issue['iid']
155-
)
150+
msg = msg + '\nIssue #{2} - [{0}]({1})'\
151+
.format(
152+
issue['title'],
153+
object_attributes['url'],
154+
issue['iid']
155+
)
156156
elif ntype == 'Snippet':
157157
msg = 'note on code snippet'
158158
return msg

0 commit comments

Comments
 (0)