Skip to content

Commit 04853b9

Browse files
runningcodeclaude
andcommitted
fix(preprod): Add tab=distribution query param to settings link
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5f818fe commit 04853b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sentry/preprod/vcs/pr_comments/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def format_pr_comment(artifacts: list[PreprodArtifact], project: Project) -> str
4848
sections.append(f"{header}\n{separator}\n" + "\n".join(android_rows))
4949

5050
settings_url = project.organization.absolute_url(
51-
f"/settings/projects/{project.slug}/mobile-builds/"
51+
f"/settings/projects/{project.slug}/mobile-builds/", query="tab=distribution"
5252
)
5353
sections.append(f"[Configure {project.name} build distribution settings]({settings_url})")
5454

tests/sentry/preprod/vcs/pr_comments/test_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_settings_link(self) -> None:
100100
result = format_pr_comment([artifact], project=self.project)
101101

102102
assert f"[Configure {self.project.name} build distribution settings](" in result
103-
assert f"/settings/projects/{self.project.slug}/mobile-builds/" in result
103+
assert f"/settings/projects/{self.project.slug}/mobile-builds/?tab=distribution" in result
104104

105105
def test_empty_list_raises(self) -> None:
106106
with pytest.raises(ValueError, match="No installable artifacts"):

0 commit comments

Comments
 (0)