In GitHub issues, can I reference a file in the repository directly in the issue and have it auto-link?
You cannot auto-link to a file, only commits and issues.
Side note, it is better to use a hash when linking to make it “future proof”. Example:
http://github.com/antirez/redis/blob/3244d8b/MANIFESTO