Closed
Description
Eventually replace it with a new statistics sidebar that does the following:
- if trusted publishing from GitHub has been used for the release:
- include the URL of the upstream repository (Show repository name, in the GitHub statistics section #10917)
- fetch statistics for the repository that trusted publishing is configured for
- mark the statistics as "verified via Trusted Publishing", with a link
- if trusted publishing was not used, and a GitHub URL was provided in the metadata (e.g., we would currently show statistics):
- don't fetch the statistics
- instead, include a message + provide a link that indicates that trusted publishing should be used to enable GitHub statistics
Originally posted by @di in #14657 (comment)