Skip to content

Commit

Permalink
Merge pull request #897 from vilmibm/hide-review
Browse files Browse the repository at this point in the history
hide stuff
  • Loading branch information
Nate Smith committed May 11, 2020
2 parents fe49c2d + 5695958 commit aac9947
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion command/pr_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import (
)

func init() {
prCmd.AddCommand(prReviewCmd)
// TODO re-register post release
// prCmd.AddCommand(prReviewCmd)

prReviewCmd.Flags().BoolP("approve", "a", false, "Approve pull request")
prReviewCmd.Flags().BoolP("request-changes", "r", false, "Request changes on a pull request")
Expand Down
7 changes: 7 additions & 0 deletions command/pr_review_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
)

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

func TestPRReview_url_arg(t *testing.T) {
t.Skip("skipping until release is done")
initBlankContext("", "OWNER/REPO", "master")
http := initFakeHTTP()
http.StubRepoResponse("OWNER", "REPO")
Expand Down Expand Up @@ -67,6 +69,7 @@ func TestPRReview_url_arg(t *testing.T) {
}

func TestPRReview_number_arg(t *testing.T) {
t.Skip("skipping until release is done")
initBlankContext("", "OWNER/REPO", "master")
http := initFakeHTTP()
http.StubRepoResponse("OWNER", "REPO")
Expand Down Expand Up @@ -112,6 +115,7 @@ func TestPRReview_number_arg(t *testing.T) {
}

func TestPRReview_no_arg(t *testing.T) {
t.Skip("skipping until release is done")
initBlankContext("", "OWNER/REPO", "feature")
http := initFakeHTTP()
http.StubRepoResponse("OWNER", "REPO")
Expand Down Expand Up @@ -147,6 +151,7 @@ func TestPRReview_no_arg(t *testing.T) {
}

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

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

func TestPRReview(t *testing.T) {
t.Skip("skipping until release is done")
type c struct {
Cmd string
ExpectedEvent string
Expand Down
2 changes: 1 addition & 1 deletion command/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func rootHelpFunc(command *cobra.Command, s []string) {
s := " " + rpad(c.Name()+":", c.NamePadding()) + c.Short
if includes(coreCommandNames, c.Name()) {
coreCommands = append(coreCommands, s)
} else {
} else if c != creditsCmd {
additionalCommands = append(additionalCommands, s)
}
}
Expand Down

0 comments on commit aac9947

Please sign in to comment.