Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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