func NewCmdPullRequestComment() (*cobra.Command, *Options) {
	o := &Options{}
	cmd := &cobra.Command{
		Use:     "comment",
		Short:   "Add comment to the pull request",
		Long:    cmdLong,
		Example: fmt.Sprintf(cmdExample, rootcmd.BinaryName),
		Run: func(cmd *cobra.Command, args []string) {
			err := o.Run()
			helper.CheckErr(err)
		},
	}
	o.PullRequestOptions.AddFlags(cmd)
	cmd.Flags().StringVarP(&o.Comment, "comment", "c", "", "comment to add")
	return cmd, o
}
NewCmdPullRequestComment creates a command object for the command
package comment
import (
	"context"
	"fmt"
	"strconv"
	"github.com/jenkins-x/jx-helpers/v3/pkg/scmhelpers"
	"github.com/jenkins-x/jx-logging/v3/pkg/log"
	"github.com/jenkins-x-plugins/jx-gitops/pkg/rootcmd"
	"github.com/jenkins-x/go-scm/scm"
	"github.com/jenkins-x/jx-helpers/v3/pkg/cobras/helper"
	"github.com/jenkins-x/jx-helpers/v3/pkg/cobras/templates"
	"github.com/pkg/errors"
	"github.com/spf13/cobra"
)
var (
	cmdLong = templates.LongDesc(`
		Adds a comment to the current pull request
`)
	cmdExample = templates.Examples(`
		# add comment
		%s pr comment -c "message from Jenkins X pipeline"
	`)
)
type Options struct {
	scmhelpers.PullRequestOptions
	Comment string
	Result  *scm.PullRequest
}