@@ -357,18 +357,24 @@ def create_issue(
357
357
):
358
358
gh = Github (os .getenv ("GITHUB_TOKEN" ))
359
359
repo = gh .get_repo ("canonical/charm-relation-interfaces" )
360
+ issue_assignees = ["IronCore864" , "tonyandrewmeyer" ]
360
361
workflow_url = ""
361
362
github_run_id = os .getenv ("GITHUB_RUN_ID" )
362
363
if github_run_id :
363
364
workflow_url = f"https://github.com/canonical/charm-relation-interfaces/actions/runs/{ github_run_id } "
364
365
result = flatten_test_result (result_per_role )
365
366
title = f"Interface test for { interface } { version } failed."
367
+ mention_team_members = ", " .join (
368
+ ["@" + member for member in get_team_members_from_team_slug (maintainer )]
369
+ )
366
370
body = f"""\
367
371
Tests for interface { interface } { version } failed.
368
372
369
373
{ result }
370
374
371
375
See the workflow { workflow_url } for more detail.
376
+
377
+ { mention_team_members }
372
378
"""
373
379
374
380
issue = None
@@ -378,18 +384,12 @@ def create_issue(
378
384
issue = existing_issue
379
385
break
380
386
381
- # Issues in public repositories can have up to 10 people assigned.
382
- # https://github.com/canonical/charm-relation-interfaces/actions/runs/11318866281
383
- team_members = get_team_members_from_team_slug (maintainer )[:10 ]
384
387
if issue :
385
388
issue .create_comment (body )
386
389
print (f"GitHub issue updated: { issue .html_url } " )
387
- if team_members :
388
- issue .edit (assignees = team_members )
389
- print (f"GitHub issue assigned to { team_members } " )
390
390
else :
391
391
issue = repo .create_issue (
392
- title = title , body = body , assignees = team_members , labels = labels
392
+ title = title , body = body , assignees = issue_assignees , labels = labels
393
393
)
394
394
print (f"GitHub issue created: { issue .html_url } " )
395
395
0 commit comments