// MRGet retrieves the merge request from GitLab project
MRGet retrieves the merge request from GitLab project
// MRGet retrieves the merge request from GitLab project
func MRGet(project string, iid int) (*gitlab.MergeRequest, error) {
	p, err := FindProject(project)
	if err != nil {
		return nil, err
	}
	mr, r, err := lab.MergeRequests.GetMergeRequest(p.ID, iid, nil)
	if r.StatusCode == 404 {
		return nil, errors.New(fmt.Sprintf("Could not find !%d in %s", iid, project))
	}
	if err != nil {
		return nil, err
	}
	return mr, nil
}
func MRGet ( project string , iid int ) ( * gitlab . MergeRequest , error ) { p , err := FindProject ( project ) if err != nil { return nil , err } mr , r , err := lab . MergeRequests . GetMergeRequest ( p . ID , iid , nil ) if r . StatusCode == 404 { return nil , errors . New ( fmt . Sprintf ( " " , iid , project ) ) } if err != nil { return nil , err } return mr , nil }
MRGet retrieves the merge request from GitLab project
MRGet retrieves the merge request from GitLab project