Make staging (changes) the default repo view

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-27 09:23:59 +01:00
parent be130582fc
commit 005e0c7d23
3 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ public class RepoController
@GetMapping("/repo/{name}") @GetMapping("/repo/{name}")
public String repo(@PathVariable String name) public String repo(@PathVariable String name)
{ {
return "redirect:/repo/" + name + "/branches"; return "redirect:/repo/" + name + "/changes";
} }
@GetMapping("/repo/{name}/branches") @GetMapping("/repo/{name}/branches")

View File

@@ -4,7 +4,7 @@
</head> </head>
<frameset cols="180,*"> <frameset cols="180,*">
<frame th:src="${selectedRepo != null} ? '/nav?repo=' + ${selectedRepo} : '/nav'" name="nav"> <frame th:src="${selectedRepo != null} ? '/nav?repo=' + ${selectedRepo} : '/nav'" name="nav">
<frame th:src="${showCloneForm} ? '/clone-form' : (${selectedRepo != null} ? '/repo/' + ${selectedRepo} + '/branches' : '/welcome')" name="content"> <frame th:src="${showCloneForm} ? '/clone-form' : (${selectedRepo != null} ? '/repo/' + ${selectedRepo} + '/changes' : '/welcome')" name="content">
<noframes> <noframes>
<body> <body>
<p>Your browser does not support frames. <a href="/repos">Click here</a> to continue.</p> <p>Your browser does not support frames. <a href="/repos">Click here</a> to continue.</p>

View File

@@ -25,11 +25,11 @@ class RepoControllerTest
private GitService gitService; private GitService gitService;
@Test @Test
void repoRedirectsToBranches() throws Exception void repoRedirectsToChanges() throws Exception
{ {
mockMvc.perform(get("/repo/myrepo")) mockMvc.perform(get("/repo/myrepo"))
.andExpect(status().is3xxRedirection()) .andExpect(status().is3xxRedirection())
.andExpect(redirectedUrl("/repo/myrepo/branches")); .andExpect(redirectedUrl("/repo/myrepo/changes"));
} }
@Test @Test