Governor Deval Patrick today named Michael Pelgro, the first assistant Middlesex District attorney, to serve as acting district attorney until he appoints a replacement for district attorney Gerard T. Leone Jr., who is resigning today for a job in a law firm. It is not clear how long Pelgro will servie as as acting district attorney.