GitHub diff stat link for commits results in 404 link

Here is a box:

STR

Click on the diff summary (+6-7 in this case) here…

What happens

404 error at https://github.com/rugk/mastodon-simplified-federation/commit/f8dedaa250ce2ea1734731a107cbe25b24f660e9/files

What should happen

Dunno. This is no PR, maybe this was made for PRs, where that link would make sense, but I don’t know where this should link to in case of commits… :thinking:

The only thing I could imagine would be a direct link to the diff stat/summary on GitHub (if possible), i.e.:

Other

Possibly introduced by:

2 Likes

@david maybe you can have a look at this?

2 Likes

I think we might need to drop the /files from here, or pick a different location:

https://github.com/discourse/onebox/blob/master/templates/githubcommit.mustache#L25

4 Likes

Yep, exactly @tshenry. I must have copy/pasted it from the PR onebox.

I’ll fix and bump onebox now

3 Likes