Github Embed

Plugin Banner

Github Embed

by Lee Willis

Download
Description

Plugin that allows you to embed details from GitHub just by pasting in the URL as you would any other embed source. Currently supports:

  • Repositories
  • User profiles
  • Project milestone summaries
  • Project contributors

Coming soon:

  • Gists…

The plugin provides very basic styling, but adds classes so you can style as you see fit. If anyone has some ideas for a better default stylesheet – pull requests welcome!

The main development is all going on on GitHub.

Treeware

You’re free to use this package for free, but if it makes it to your production environment please buy the world a tree.

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Paste a Github repo, or user URL into a post, or page
  1. GitHub Repository

    GitHub Repository

  2. GitHub user profile

    GitHub user profile

  3. Project milestone summaries

    Project milestone summaries

  4. Project contributors

    Project contributors

Can I change the layout?

Yes, you can override templates by copying the relevant template from the templates folder to a folder in your theme called wp-github-oembed/

Does seem to work, with this 1 simple trick

By Ted Thompson (yorokobi) on December 25, 2023

http instead of https.

Posting the URL (which should trigger an embed in Gutenberg) using https seems to be hit or miss, but using http worked for all URLs I tried.

Sadly not working

By sighallgone on January 7, 2023

Doesn't seem to work sadly. Trying to add my public repos to a page and they are not showing up like in the screenshots. I don't think I am doing anything wrong, but perhaps a bit of better documentation and screenshots on how to actually add stuff would resolve the confusion if it is actually working.

Not working at all for me

By lordmatt on July 9, 2022

I've tried on two separate multisite installs and I cannot get any GitHub URL to embed at all.

Plugin is working perfectly for public repositories!

By gk8s on June 7, 2021

Tested with WordPress 5.7.2 Plugin works only for public repositories. It would be great to also support private repositories.

this doesn't embed anything and is listed as the first embed plugin for github

By laresistenciadelbit (lrdb) on May 9, 2021

This doesn't embed anything and is listed as the first embed plugin for github. I even made my own embeding plugin for embed github content (repos,files,readmes...) years ago, and this plugin of yours is the first of the list even if doesn't embed anything, just the name of the repository ? wtf

very nice plugin!

By Alessandro (pinoperino) on February 5, 2020

Very useful and simple plugin to add a repo in a WordPress post.

Great job

By Christopher Sem (leoniscsem) on May 14, 2019

Exactly what I was looking for.

This is so cool it should be part of WordPress!

By xfx on March 10, 2017

Had a couple of issues making it work but it was all a PEBKAC. Great support from author!

2.2.1

  • No changes. Internal re-packaging.

2.2.0

  • Fix issue where data was not pass to overridden templates, making templating possible.

2.1.0

  • Wrap recent commits in a tag, expanded by default. Props ZjzMisaka on GitHub
  • Wrap contributor details in a tag, expanded by default.

2.0.2

  • Fix issue where GitHub serves incorrectly sized images for non-avatar users

2.0.1

  • Suggest Treeware donations

2.0

  • Support for authenticating using personal access tokens

1.9

  • Remove unused code – thanks to https://github.com/pjaudiomv

1.8

  • New: All responses are now templated thanks to https://github.com/Zebouski

1.7

  • Include GitHub logo rather than hotlinking to (no-longer supported) repo for image
  • Add wp_github_oembed_logo_class filter

1.6

  • Internal code cleanups
  • Remove unnecessary debug code

1.5

  • Fixes for newer GitHub milestone URLs

1.4

  • Fix PHP warning that could block contributor embeds.
  • Fix Contributor embeds to use correct API call
  • Pass correct initial value to credentials filters

1.3

  • Expire the oEmbed cache daily

1.2

  • Split API calls into separate class
  • Implement milestone summaries
  • Implement contributor lists

1.1

  • Default CSS and more styling

1.0

  • First release
Back to top