Skip to content

Commit d9aaf23

Browse files
committed
added 'RE: ***' title for github comments
1 parent 1420eb8 commit d9aaf23

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

github_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def make_dataframe(path):
3232
for t in th['tail']:
3333
all_messages.append(
3434
(t['id'], i,
35-
'', t['body'],
35+
'RE: ' + h['title'],
36+
t['body'],
3637
t['sender'], t['created_at'])
3738
)
3839
return pd.DataFrame(all_messages,

test_github_util.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def test_make_dataframe(self):
2525
"Document multilabel y support for all splitters in model_selection module",
2626
self.df.iloc[0]['subject']
2727
)
28+
assert_equal(
29+
"RE: Document multilabel y support for all splitters in model_selection module",
30+
self.df.iloc[1]['subject']
31+
)
2832
assert_true(' '.join(["L(Documentation)", "L(Easy)",
2933
"L(Need Contributor)"])
3034
in self.df.iloc[0]['body'])
@@ -64,3 +68,4 @@ def test_remove_messages_post_by_certain_users(self):
6468
0,
6569
df[df['sender_id'] == 'coveralls'].shape[0]
6670
)
71+

0 commit comments

Comments
 (0)