From 24022a70738e71e9acf2d6ecf4bdc9106f5e6281 Mon Sep 17 00:00:00 2001 From: "trycua-release[bot]" Date: Tue, 4 Aug 2026 14:32:41 -0500 Subject: [PATCH] ci: restore PR 2805 release attribution --- .github/release-attribution-config.json | 1 + .../scripts/tests/test_release_attribution.py | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/.github/release-attribution-config.json b/.github/release-attribution-config.json index e48f3ebaa3..5f445cfeb5 100644 --- a/.github/release-attribution-config.json +++ b/.github/release-attribution-config.json @@ -27,6 +27,7 @@ "manfred@ubuntu26.04-vm": "ai-ag2026", "me@madhavajay.com": "madhavajay", "robert@trycua.com": "enchanted-koala", + "rsyuzyov@gmail.com": "rsyuzyov", "sarinajin.li@gmail.com": "sarinali", "zane.chee.2023@scis.smu.edu.sg": "injaneity", "zongxin_yang@hms.harvard.edu": "z-x-yang" diff --git a/.github/scripts/tests/test_release_attribution.py b/.github/scripts/tests/test_release_attribution.py index e7702cd086..9a78fd6de2 100644 --- a/.github/scripts/tests/test_release_attribution.py +++ b/.github/scripts/tests/test_release_attribution.py @@ -517,3 +517,33 @@ def test_unresolved_human_coauthor_fails_closed(): "optOutHandles": [], }, ) + + +def test_pr_2805_coauthor_resolves_through_trusted_identity_override(): + config = json.loads((REPO_ROOT / ".github/release-attribution-config.json").read_text()) + commit = CommitRecord( + "aebd9962d2686e75ff9e17e0a3735e303ff96981", + "fix(cua-driver): stop Windows update --apply from killing itself (#2805)", + "Co-authored-by: Roman Syuzyov ", + ) + pull = { + "user": {"login": "rsyuzyov"}, + "author_association": "CONTRIBUTOR", + "body": "", + "labels": [], + } + + contributors, issues, visual_requested = _change_contributors( + pull, + commit, + FakeGitHub(commit.sha), + "trycua/cua", + config, + ) + + assert contributors == [ + {"login": "rsyuzyov", "role": "author", "external": True}, + {"login": "rsyuzyov", "role": "coauthor", "external": True}, + ] + assert issues == [] + assert visual_requested is False