fixes error with pr.repository

fixes error with pr.repository returning ('repos/<owner>', '<repo-name>') rather than ('<owner>', '<repo-name>'). Leaves original version in, but commented out in case of revert needs.

Can @gidden or @zwelchWI take a look please?