mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix(pr): review decision ignores comment reviews, paged review list, pending review comments hidden, team request names (follow gh)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
19 files changed
+258
-50
No files matched your search
@@ -312,6 +312,15 @@ func TestHelpConfirmAndArgumentsAnnotations(t *testing.T) {
|
||||
require.Contains(t, out.String(), "\nEXAMPLES\n # Drop issue 7\n $ tea issue drop 7\n")
|
||||
}
|
||||
|
||||
func TestHelpDefaultsToCurrentBranchOnlyWhereThePullRequestIsOptional(t *testing.T) {
|
||||
deps, out, _ := testDeps(t)
|
||||
for path, defaults := range map[string]bool{"pr review list": true, "pr view": true, "pr review view": false, "pr review dismiss": false, "pr checkout": false} {
|
||||
out.Reset()
|
||||
require.NoError(t, Execute(context.Background(), deps, append(strings.Fields(path), "--help")))
|
||||
require.Equal(t, defaults, strings.Contains(out.String(), "Without an argument, the pull request of the current branch"), path)
|
||||
}
|
||||
}
|
||||
|
||||
func TestHelpTopicsAndUnknownTopics(t *testing.T) {
|
||||
deps, out, _ := testDeps(t)
|
||||
for args, want := range map[string]string{
|
||||
|
||||
Reference in new issue
Block a user