Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github Expando Host #5299

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

thybag
Copy link
Contributor

@thybag thybag commented Jun 2, 2021

Use the new GitHub open graph embeds to create an expando host for linked github repositories.

Example below taken from from https://old.reddit.com/domain/github.com/

image

Currently the host will ignore github.com/user/ routes as there's nothing built in to show (Unless someone wanted to use the GH public API data to build a profile for these from scratch).

I've tested this next to the now renamed github-gist embed and it appears to function correctly (Matching the gist.github to the gist expando and the direct github ones to this. I have additionally added a secondary hostname check to ensure it can't accidentally fall through).

Very open to any feedback as been quite a while since I played with the hosts/RES code in general.

Relevant issue: N/A (I can raise on is useful)
Tested in browser: Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant