Note: The jump to definition feature is in beta and subject to change. The feature is enabled now for a limited number of users. We’ll enable jump to definition for every user over time.

For a subset of public repositories, you can jump to a function or method’s definition within the same repository by clicking the function or method call in a file.

Source: Navigating code on GitHub - GitHub Help