Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken Slack digest for new comments #9455

Merged
merged 8 commits into from
Jun 26, 2024
5 changes: 4 additions & 1 deletion scripts/gh_scripts/issue_comment_bot.py
Original file line number Diff line number Diff line change
@@ -217,7 +217,10 @@ def comment_on_thread(message: str):
if lead['leadLabel'] == i['lead_label']
)
slack_id = next(
mekarpeles marked this conversation as resolved.
Show resolved Hide resolved
lead['slackId'] for lead in leads if lead['leadLabel'] == username
lead['slackId']
mekarpeles marked this conversation as resolved.
Show resolved Hide resolved
for lead in leads
if lead['leadLabel'] == f'Lead: @{username}',
None
)
if slack_id:
message += f'Lead: {slack_id}\n'
Loading