// This is needed becaue the type in gitlab-go does not round-trip
This is needed becaue the type in gitlab-go does not round-trip
// This is needed becaue the type in gitlab - go does not round - trip
func unmarshallMR(bytes []byte, mr *gitlab.MergeRequest) error {
	var preparse map[string]interface{}
	err := json.Unmarshal(bytes, &preparse)
	if err != nil {
		return err
	}
	delete(preparse, "labels")
	processed_bytes, err := json.Marshal(preparse)
	if err != nil {
		return err
	}
	return json.Unmarshal(processed_bytes, &mr)
}
func unmarshallMR ( bytes [ ] byte , mr * gitlab . MergeRequest ) error { var preparse map [ string ] interface { } err := json . Unmarshal ( bytes , & preparse ) if err != nil { return err } delete ( preparse , " " ) processed_bytes , err := json . Marshal ( preparse ) if err != nil { return err } return json . Unmarshal ( processed_bytes , & mr ) }
This is needed becaue the type in gitlab-go does not round-trip
This is needed becaue the type in gitlab - go does not round - trip