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.6 |
Requires PHP | 7.0 |
Stable tag | 1.2.1 |
License | GPLv3 or later |
License URI | http://www.gnu.org/licenses/gpl-3.0.html |
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.
- 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.
- Upload the
github-repo-card-block
directory to the/wp-content/plugins/
directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- Ensure you have the latest version of WordPress installed (minimum version 5.0).
- In the WordPress editor, search for "GitHub Repo Card Block" in the block inserter.
- Add the block to your post or page.
- Enter the GitHub repository URL in the block settings.
- The block will automatically fetch and display the repository's details, including the number of stars, forks, watchers, issues, and contributors.
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.
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
.
Frontend Display: How the block appears on the frontend.
- adds .distignore
- adds function to check GitHub repo for plugin updates
- Fixes trailing slash issue on repo URL
- defines a constant for versioning
- Removes deprecated block script handling
- Adds toggles for repo stat display
- Adds a transient of repo data to avoid repeated API calls
- Initial release of the GitHub Repo Card Block plugin.
Planned upgrades to the plugin include:
- The ability to selectively display count of stars, forks, watchers, issues, and contributors