fix repository issue endpoint