Show PRs
Adds a menu to the admin bar to show the current PR of specified folders in the active theme.
by Eduard Ungureanu · github.com/eduard-un/show-pr-in-admin-bar
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/eduard-un/show-pr-in-admin-bar/archive/refs/heads/main.zipShow PRs in Admin Bar
A simple WordPress plugin that adds a "Show PRs" menu to the admin bar. This menu displays the current Git branch for a predefined list of folders within the active theme, which is useful for developers working with multiple repositories or submodules in a theme.
Features
- Adds a top-level menu item "Show PRs" to the WordPress admin bar.
- Displays the current Git branch for specified folders inside the active theme directory.
- Traverses parent directories to find the correct Git repository, making it compatible with sub-folder setups.
- Handles Git worktrees and submodules.
Monitored Folders
The plugin is configured to check the following folders within the active theme (wp-content/themes/your-theme/):
.(the theme root)ai-appcloudcommoncoreepanelincludes/builder-5includes/builder
Installation
- Download the plugin files.
- Upload the
show-prsfolder to the/wp-content/plugins/directory of your WordPress installation. - Activate the plugin through the 'Plugins' menu in WordPress.
Once activated, the "Show PRs" menu will be visible in the admin bar.