Skip to content

Commit aac9947

Browse files
author
Nate Smith
authored
Merge pull request cli#897 from vilmibm/hide-review
hide stuff
2 parents fe49c2d + 5695958 commit aac9947

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

command/pr_review.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
)
1212

1313
func init() {
14-
prCmd.AddCommand(prReviewCmd)
14+
// TODO re-register post release
15+
// prCmd.AddCommand(prReviewCmd)
1516

1617
prReviewCmd.Flags().BoolP("approve", "a", false, "Approve pull request")
1718
prReviewCmd.Flags().BoolP("request-changes", "r", false, "Request changes on a pull request")

command/pr_review_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
)
99

1010
func TestPRReview_validation(t *testing.T) {
11+
t.Skip("skipping until release is done")
1112
initBlankContext("", "OWNER/REPO", "master")
1213
http := initFakeHTTP()
1314
for _, cmd := range []string{
@@ -22,6 +23,7 @@ func TestPRReview_validation(t *testing.T) {
2223
}
2324

2425
func TestPRReview_url_arg(t *testing.T) {
26+
t.Skip("skipping until release is done")
2527
initBlankContext("", "OWNER/REPO", "master")
2628
http := initFakeHTTP()
2729
http.StubRepoResponse("OWNER", "REPO")
@@ -67,6 +69,7 @@ func TestPRReview_url_arg(t *testing.T) {
6769
}
6870

6971
func TestPRReview_number_arg(t *testing.T) {
72+
t.Skip("skipping until release is done")
7073
initBlankContext("", "OWNER/REPO", "master")
7174
http := initFakeHTTP()
7275
http.StubRepoResponse("OWNER", "REPO")
@@ -112,6 +115,7 @@ func TestPRReview_number_arg(t *testing.T) {
112115
}
113116

114117
func TestPRReview_no_arg(t *testing.T) {
118+
t.Skip("skipping until release is done")
115119
initBlankContext("", "OWNER/REPO", "feature")
116120
http := initFakeHTTP()
117121
http.StubRepoResponse("OWNER", "REPO")
@@ -147,6 +151,7 @@ func TestPRReview_no_arg(t *testing.T) {
147151
}
148152

149153
func TestPRReview_blank_comment(t *testing.T) {
154+
t.Skip("skipping until release is done")
150155
initBlankContext("", "OWNER/REPO", "master")
151156
http := initFakeHTTP()
152157
http.StubRepoResponse("OWNER", "REPO")
@@ -156,6 +161,7 @@ func TestPRReview_blank_comment(t *testing.T) {
156161
}
157162

158163
func TestPRReview_blank_request_changes(t *testing.T) {
164+
t.Skip("skipping until release is done")
159165
initBlankContext("", "OWNER/REPO", "master")
160166
http := initFakeHTTP()
161167
http.StubRepoResponse("OWNER", "REPO")
@@ -165,6 +171,7 @@ func TestPRReview_blank_request_changes(t *testing.T) {
165171
}
166172

167173
func TestPRReview(t *testing.T) {
174+
t.Skip("skipping until release is done")
168175
type c struct {
169176
Cmd string
170177
ExpectedEvent string

command/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func rootHelpFunc(command *cobra.Command, s []string) {
271271
s := " " + rpad(c.Name()+":", c.NamePadding()) + c.Short
272272
if includes(coreCommandNames, c.Name()) {
273273
coreCommands = append(coreCommands, s)
274-
} else {
274+
} else if c != creditsCmd {
275275
additionalCommands = append(additionalCommands, s)
276276
}
277277
}

0 commit comments

Comments
 (0)