Validate README format before displaying
Zendesk ticket: https://gitlab.zendesk.com/agent/tickets/13543
GitLab version: 8.2.2
Expected behavior
If a file other than rdoc, txt, or other compatible formats is set as the README it shouldn't be used as the project's README file.
Observed Behavior
When pushing a Pages file to the project it tries to display it as seen on the attached ScreenShot.
pages_as_readme
Reference
This was reproduced here: https://gitlab.com/balameb/sample_app