Use commit sha for API calls on project view page
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=425924) </details> <!--IssueSummary end--> Epic: https://gitlab.com/groups/gitlab-org/-/epics/11540 ### Problem A project page (https://gitlab.com/gitlab-org/gitlab) uses a reference name for API requests. ### Proposal Resolve the reference name on page load and use the corresponding commit sha for API requests. **backend** finds a default branch for the project and exposes both a reference name `main` and a commit sha `aaaa` to **frontend**. **frontend** uses the reference name on UI and the commit sha for API requests. ~backend Support frontend with providing both reference name and resolved commit sha. ~frontend Modify affected requests to use commit sha as a `ref`: * getPaginatedTree (GraphQL) * pathLastCommit (GraphQL) * Logs_tree request: https://gitlab.com/gitlab-org/gitlab/-/refs/master/logs_tree/?format=json&offset=0 (API) * Readme request: https://gitlab.com/gitlab-org/gitlab/-/blob/master/README.md?format=json&viewer=rich (API)
issue