func (c Client) CheckIfMerged(ctx context.Context, req *CheckIfMergedReq, opt ...requests.Option) (*CheckIfMergedResponse, error) {
	return CheckIfMerged(ctx, req, append(c, opt...)...)
}
/*
CheckIfMerged performs requests for "pulls/check-if-merged"

Check if a pull request has been merged.

GET /repos/{owner}/{repo}/pulls/{pull_number}/merge

https://developer.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
package pulls
import (
	"context"
	"fmt"
	components "github.com/willabides/octo-go/components"
	requests "github.com/willabides/octo-go/requests"
	"net/http"
	"net/url"
	"strconv"
)
func CheckIfMerged(ctx context.Context, req *CheckIfMergedReq, opt ...requests.Option) (*CheckIfMergedResponse, error) {
	opts := requests.BuildOptions(opt...)
	if req == nil {
		req = new(CheckIfMergedReq)
	}
	resp := &CheckIfMergedResponse{}
	httpReq, err := req.HTTPRequest(ctx, opt...)
	if err != nil {
		return nil, err
	}
	r, err := opts.HttpClient().Do(httpReq)
	if err != nil {
		return nil, err
	}
	err = resp.ReadResponse(r)
	if err != nil {
		return nil, err
	}
	return resp, nil
}