Skip to content

Repository contributors page: Revamp ideas

Created by: umpox

Context

Example page: https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/stats/contributors

The repository contributors page has a lot of potential. Aside from just showing the most commits to the default branch (like most code hosts), we have additional support to filter these results.

For example, maybe a developer wants to quickly find someone to talk to about Wildcard. They could quickly do that by filtering through Sourcegraph

image

Ideas

There's a things we can do here, some thoughts:

  • Change the revision input from free form text to use the Branch/Tag/Commit selector (autocomplete revisions)
    • Also fix, as it seems to error right now
  • Add autocompletion to the file path (maybe we could integrate with our Monaco input).
  • Make it more obvious what exactly is possible with the file path
    • E.g. *.json works if you wanted to find all contributors that have made changes to JSON files
  • Fix bugs with the time period (currently seems to error for anything except "All time")
  • Overall redesign to make the page look better (this page wasn't finished in the 2021 redesign: https://github.com/sourcegraph/sourcegraph/issues/21630 )
  • Include contribution charts like the GitHub contributors page. Helps visualise contribution amounts and timeframes