File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
sir_complainsalot/delphi_sir_complainsalot Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ def report_complaints(all_complaints, params):
64
64
assert False , e .response ["error" ]
65
65
66
66
def get_maintainers_block (complaints ):
67
+ """Build a Slack block to alert maintainers to pay attention."""
67
68
maintainers = set ()
68
69
for c in complaints :
69
70
maintainers .update (c .maintainers )
@@ -87,7 +88,7 @@ def format_complaints_aggregated_by_source(complaints):
87
88
88
89
blocks = [get_maintainers_block (complaints )]
89
90
90
- def message_for_source (complaint ):
91
+ def message_for_source (complaint ):
91
92
return "{main_text} - (last update: {last_updated})" .format (
92
93
main_text = complaint .message ,
93
94
last_updated = complaint .last_updated .strftime ("%Y-%m-%d" ))
You can’t perform that action at this time.
0 commit comments