Added createIssue for repositories

I needed a createIssue, and realized it didn't exist. So here it is.
Also removed the trailing spaces and added a EOF new line.