Git Product home page Git Product logo

wp-github-oembed's Introduction

Github Embed

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

https://github.com/leewillis77/wp-github-oembed Sample output for repository

User profiles

https://github.com/leewillis77/ Sample output for a user

Milestone summaries

https://github.com/leewillis77/wp-github-oembed/issues?milestone=1&state=open Sample output for a milestone

Repository contributors

https://github.com/leewillis77/wp-github-oembed/graphs/contributors Sample output for a list of 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! lugin that allows you to embed details about a github user, or repo just by pasting in the repo URL as you would any other embed source.

Installation

  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

Support this free plugin

We're a climate-positive workforce

Using this plugin on your live site? Please buy the world some trees...

Support this free plugin by planting trees

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees.

As a business, we already donate a percentage of our profits from premium plugins to global climate change projects. You're free to use this plugin free of charge, but if you do, please consider buying the world some trees in return.

You’ll be creating employment for local families and restoring wildlife habitats.

Frequently Asked Questions

Can I change the layout?

Not yet, we're hoping to add templating - all contributions welcome!

Screenshots

Changelog

  • 1.9

    • Remove unused code - thanks to pjaudiomv on GitHub.
  • 1.8

  • 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

    • Support for milestone summaries
    • Support for contributor lists
  • 1.1

    • Default CSS and more styling
  • 1.0

    • First release

wp-github-oembed's People

Contributors

ierhyna avatar kanakiyajay avatar leewillis77 avatar pjaudiomv avatar zebouski avatar zjzmisaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-github-oembed's Issues

Doesnt work anymore

Hello,

I'm using this plugin for years, thank you so much. Not a long time ago I'm noticed that it is broken, but can't remember an exact time. Looks like the plugin skipping the link, see here: https://sww-it.ru/projects

Please take a look.

Github Logo out of date

the Github logo referenced is out of date, coming from the media repository. From their readme:

NOTE: This repository is no longer supported or updated by GitHub. Please check out our official Logos page to find official GitHub logos as well as our beloved Octocat, along with guidelines for how you can use them.

I'd get if you didn't want to upload a copy of the mark inside the plugin though, and I don't know if they're hosted elsewhere for easy referencing anymore.

edit: wanted to add that I love the plugin, just thought you might want to know
double edit: just saw the pr someone had to add svg support, sorry

[GitHub API] Deprecation notice for authentication via URL query parameters

Hey, we are using your plugin on one of our sites and we received this email from Github. Is this something you are planning on addressing or working on? Thanks a bunch!


Hello there!

On February 3rd, 2020 at 22:15 (UTC) your application used its client_id and client_secret (with the User-Agent WordPress Github oEmbed plugin)

Please use Basic Authentication instead as using OAuth credentials in query parameters has been deprecated.

Plugin doesn't work

Hi, I downloaded, installed and enabled this plugin on italiancoders but nothing shows-up.
What can I check to understand the cause of the problem? Could be the theme that is blocking the plugin?

Wp version: 4.9.1

Repo contributors link enlarges contributors using the default GitHub avatar

When using the link for a GitHub repos contributors page, any contributor using the default GitHub profile avatar is unusually enlarged.

See image below showing a page on my site using the link to a GitHub repo contributors. As you can see, only contributors that are not using the default GitHub profile avatar are sized okay.

image

Allow to embed pull requests as well

Plugin should be able to decode link to Pull request and create a box from it.
For instance a link like https://github.com/Inclumedia/RecentPages/pull/4 should result in a box like the one already generated for Milestones for instance.

How do you use it?

I use the HTML editor, and I don't see a way to use this plugin? I tried "pasting" the link like usual, but I'm guessing there's probably some visual editor trick to use this? Documentation could be a little clearer on what "pasting" means.

I don't see how to use it at all. Is the URL supposed to be parsed out of the post automatically? If so, it's not working for me.

Any help or clarification would be much appreciated. Thanks!

Embed targeted information

Would be nice to embed targeted information. Like count of open/closed for a milestone, due date, or even count of open/closed based on label filters. In addition, the same could be useful for the repo contributors URL, to list contributors on a project.

I'd use this in a flash on http://pods.io/

Just says "Sorry, this content could not be embedded."

As per title, just says "Sorry, this content could not be embedded" on Wordpress 6.0. I assume WP6 isn't supported and that's fine, but FYI. Unsure if this is an issue with the plugin or with WP6 actually but based on the plugin docs I should be able to just paste a repo URL into a post and have it pull info from GitHub. That doesn't happen.

Does not work with WP4.1?

Hi there!

Sorry, but no matter how I try, I simply don't get this plugin to work with WordPress 4.1.
Is there any incompatibility? I can't see any. I tried to fix the oEmbed Regex, as I thought, the "." in ".com" needs to be escaped, but to no avail. I tried to change it to simple wildcard instead of regex – no avail yet.

There is no error message, no warning, nothing. It simply doesn't do anything. WordPress outputs the URL as it would have done without the plugin. And yes, I made sure that there is no link, just the URL. In a line of it's own. As you would do with any oEmbed URLs.

Any ideas? I'm helpless.
– Chris

Always Up-To-Date Posts

Hello, I stumbled across your project while looking for a way to version articles (as .rst ducuments for instance) AND have the version displayed on my blog always and only be the most recent.

Any ideas how I could do this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.