WP Manifestindependent plugin directory
manifest / editor / github-repo-card-block

GitHub Repo Card Block WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

The GitHub Repo Card Block is a custom WordPress block that allows you to display detailed information about a GitHub repository directly within your posts or pages.

★ 3stars
13release downloads
v1.2.1latest · 2 years ago

Install

Download github-repo-card-block.zip From the v1.2.1 release on GitHub, Oct 7, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/davidwolfpaw/github-repo-card-block/releases/download/v1.2.1/github-repo-card-block.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.
Description Display information about a GitHub repository in your posts or pages.
Contributors wolfpaw
Donate link https://david.garden/plugins
Tags GitHub, block, Gutenberg, repository, embed
Requires at least 5.0
Tested up to 6.9
Requires PHP 7.0
Stable tag 1.3.0
License GPLv3 or later
License URI http://www.gnu.org/licenses/gpl-3.0.html

Description

The GitHub Repo Card Block is a custom WordPress block that allows you to display detailed information about a GitHub repository directly within your posts or pages.

The block fetches data from the GitHub API and displays key details such as the repository's name, owner, description, and statistics like stars, forks, watchers, issues, and contributors.

Features

  • Display GitHub Repository Information: Easily display GitHub repository details in your WordPress content.
  • Dynamic Fetching: The block fetches live data from the GitHub API.
  • Consistent Styling: The block is styled consistently across both the WordPress editor and the frontend. Styling is minimal to work with your theme.

Installation

  1. Upload the github-repo-card-block directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Ensure you have the latest version of WordPress installed (minimum version 5.0).

Usage

  1. In the WordPress editor, search for "GitHub Repo Card Block" in the block inserter.
  2. Add the block to your post or page.
  3. Enter the GitHub repository URL in the block settings.
  4. The block will automatically fetch and display the repository's details, including the number of stars, forks, watchers, issues, and contributors.

Frequently Asked Questions

How does the block fetch data?

The block uses the GitHub API to fetch repository details. When a valid GitHub repository URL is entered, the block dynamically retrieves and displays the relevant information.

Does the block work with all GitHub repositories?

The block is designed to work with public GitHub repositories. Ensure the repository URL you enter is accessible and follows the format https://github.com/owner/repository.

Screenshots

Frontend Display: How the block appears on the frontend. Screenshot of frontend of GitHub Repo Card Block, showing two blocks from two different owners

GitHub SVGs from github.com

Changelog

1.30.

  • includes Github update tool

1.2.2

  • ensures styles are enqueued on the frontend
  • updates styles

1.2.1

  • adds .distignore
  • adds function to check GitHub repo for plugin updates

1.2.0

  • Fixes trailing slash issue on repo URL
  • defines a constant for versioning
  • Removes deprecated block script handling
  • Adds toggles for repo stat display

1.1.0

  • Adds a transient of repo data to avoid repeated API calls

1.0

  • Initial release of the GitHub Repo Card Block plugin.

Todos

Planned upgrades to the plugin include:

  • The ability to selectively display count of stars, forks, watchers, issues, and contributors

Releases

2 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.2.1 latest
Oct 7, 2024 2 years ago
github-repo-card-block.zip
13
Sep 30, 2024 2 years ago
tag only
—
A grade

Security

GitHub Repo Card Block 1.2.1 · audited by WP Registry

No security issues found.

Audited release
1.2.1
Findings
none
Worst severity
—
Content hash
36e8c2f721c85ef03b3d49e3…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.