HARRISBURG, Pa. (WHTM) – A state appeals court says the governor’s office must release thousands of emails Katie McGinty sent and received in the six months she was Gov. Tom Wolf’s chief of staff.

Commonwealth Court on Friday affirmed the decision of the Pennsylvania Office of Open Records, which had sided with the Republican Party of Pennsylvania in saying the Wolf administration should turn over the emails.

The GOP requested the emails, hoping to dig up dirt to use against McGinty – a Democrat candidate for U.S. Senate – in her campaign against incumbent Republican Pat Toomey. The party argued there are about 15,000 emails, but the Wolf administration turned over just 71 pages.

The Wolf administration argued that the GOP request was too broad, and it said fulfilling such a request “places the agency in the position of a taxpayer-funded, political fishing expedition.”Get breaking news, weather and traffic on the go. Download the ABC27 News App and the ABC27 Weather App for your phone and tablet.