You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Point "timemachine links" in comments to the correct branch #1953
we can't tell whether some-other-branch is really a branch or a tag without making an API request for each link
the way permalinks are generated is by appending @datetime to the reference, but tag@datetime will fail
I can think of two solutions for this:
Find out whether each reference is a tag, and if it is, don't add the permalink;
this probably means find each user/repo#reference and asking the API if there's a tag with that name.
Find out the latest commit of each link, and maybe we'll also find out the above;
maybe the API accepts queries like reference@datetime and that will tell the real commit it points to and maybe fail on tags (with this, the resulting permalink is cleaner but it's probably harder to implement)
API v4 allows multiple queries in a single HTTP request; you can see how this is done in show-names and pr-branches
Activity