Developers · Gutenberg

Commit History block for WordPress

Display a Git-style commit history timeline — perfect for changelogs, devlogs, and project updates.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Display a Git-style commit history timeline — perfect for changelogs, devlogs, and project updates.

Inspector panels on this block: Repository, Appearance, Commits (' + a.commits.length +, Theme Colors, Type Prefix Colors. Those titles come from index.js, not from a shared template.

Where to find it

Gutenberg inserter → Developers → search “Commit History” (block name `blockenberg/commit-history` in block.json). Style it in the sidebar after insert.

How to use Commit History block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Commit History”, insert it. Category: Developers.
  3. Configure inspector controls that exist on this block. Open Repository. Set “Repo name”, “Branch”, “Show branch badge”, “Show hash”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Repo nameText field in the inspector. block.json default: my-project. Saved as `repoName`.
BranchText field in the inspector. block.json default: main. Saved as `branchName`.
Show branch badgeOn/off toggle in the inspector. On by default. Saved as `showBranch`.
Show hashOn/off toggle in the inspector. On by default. Saved as `showHash`.
Show author avatarOn/off toggle in the inspector. On by default. Saved as `showAuthorInitials`.
Show dateOn/off toggle in the inspector. On by default. Saved as `showDate`.
Show version tagsOn/off toggle in the inspector. On by default. Saved as `showTags`.
Border radiusNumeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `borderRadius`.
Commit messageText field in the inspector. Saved as `commits`.
Short hash (7 chars)Text field in the inspector. Saved as `commits`.
Author nameText field in the inspector. Saved as `commits`.
DateText field in the inspector. Saved as `commits`.
Tags (comma-separated)Text field in the inspector. Saved as `commits`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Commit History block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Commit History”. It sits under Developers. After insert, open Repository and set “Repo name”, “Branch”, “Show branch badge”, “Show hash”.

What makes Commit History different from other Blockenberg blocks?

Display a Git-style commit history timeline — perfect for changelogs, devlogs, and project updates. Inspector labels on this block include “Repo name”, “Branch”, “Show branch badge”, “Show hash”.

Is the Commit History Gutenberg block free?

Yes. Commit History ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Commit History to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Repository, Appearance, Commits (' + a.commits.length +, Theme Colors).

Related developers blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Commit History from the Gutenberg inserter.

Get Blockenberg