Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
in activity feed, combine repo path and issue/change prefix into full import path #26
The activity feed on the index page of dmitri.shuralyov.com shows events, such as:
Right now, the following 2 pieces of information are displayed separately:
I'm working primarily with Go, and the Go project has a well established convention for including the package as a prefix before the title, e.g., "net/http: add StatusTooEarly (425)". (It makes sites like goissues.org possible.) Additionally, many Go packages have vanity import paths that differ from the repository path that they're contained in, which we can find out relatively easily from go.mod files (see commit shurcooL/events@5bd98dd).
It's possible to use that information to compute the full import path of the affected Go package. Displaying that will be more readable and streamlined.
For example, instead of seeing the repo and prefix on separate lines:
We can combine them and show:
Instead of having to read "proxy:" before seeing that it's the x/net subrepo:
We can combine into a more readable "x/net/proxy" import path:
We can also include a snippet from the issue description body:
This applies to third-party Go packages too. Instead of:
We can show the correct vanity import path of that project:
This change is implemented and live on dmitri.shuralyov.com now!
I'm going to take some time before merging the code to