PHPackages                             turbocat/power-pr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. turbocat/power-pr

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

turbocat/power-pr
=================

One-command GitHub Pull Request creator/merger in Bash (uses gh).

v1.0.4(7mo ago)1108↓50%1MITShellPHP &gt;=7.2

Since Oct 5Pushed 7mo agoCompare

[ Source](https://github.com/TurboCatTech/power-pr)[ Packagist](https://packagist.org/packages/turbocat/power-pr)[ Docs](https://github.com/TurboCatTech/power-pr)[ RSS](/packages/turbocat-power-pr/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

power-pr
========

[](#power-pr)

One-command GitHub Pull Request creator/merger in Bash (uses `gh`). Create a PR from **source → target** branch, then merge immediately or enable **auto-merge**.

---

Requirements
------------

[](#requirements)

- Linux
- [`git`](https://git-scm.com/) and [`gh` (GitHub CLI)](https://cli.github.com/) available in PATH
- `gh auth login` completed for the machine/CI runner
- Remote named `origin` pointing to a GitHub repo

---

1) Install &amp; use with **Composer** (project-local, dev tool)
----------------------------------------------------------------

[](#1-install--use-with-composer-project-local-dev-tool)

**Install (dev):**

```
composer require --dev turbocat/power-pr
```

**Add an alias in your project’s `composer.json`:**

```
{
  "scripts": {
    "power-pr": "vendor/bin/power-pr"
  }
}
```

**Run:**

```
composer power-pr main production
# with options:
composer power-pr main production --strategy squash --labels "release,auto-merge"
```

---

2) Install &amp; use with **npm** (project-local, dev tool)
-----------------------------------------------------------

[](#2-install--use-with-npm-project-local-dev-tool)

**Install (dev):**

```
npm i -D @turbocat/power-pr
```

**Add an alias in your project’s `package.json`:**

```
{
  "scripts": {
    "power-pr": "./node_modules/@turbocat/power-pr/bin/power-pr"
  }
}
```

**Run:**

```
npm run power-pr -- main production
# or directly via npx:
npx power-pr main production
```

---

3) Use **without** Composer/npm (vendor-less)
---------------------------------------------

[](#3-use-without-composernpm-vendor-less)

Add the script directly to your repo:

```
mkdir -p scripts
curl -fsSL https://raw.githubusercontent.com/TurboCatTech/power-pr/main/scripts/power_pr.sh -o scripts/power_pr.sh
chmod +x scripts/power_pr.sh
```

*(optional)* Add the tiny wrapper so you can call `bin/power-pr`:

```
mkdir -p bin
cat > bin/power-pr  production), auto-merge when possible
composer power-pr main production

# Squash merge with labels
composer power-pr main production --strategy squash --labels "release,auto-merge"

# Create PR but don’t enable auto-merge
composer power-pr main production --no-auto

# Dry run (no changes)
composer power-pr main production --dry-run

# Custom title/body
composer power-pr main production \
  --title "Deploy: main → production" \
  --body  "Promotes latest changes to production."
```

---

Troubleshooting
---------------

[](#troubleshooting)

- **HTTPS prompt error**`fatal: could not read Username for 'https://github.com': terminal prompts disabled`Use SSH remote or configure `gh` to supply HTTPS credentials:

    ```
    git remote set-url origin git@github.com:/.git
    # or
    gh auth setup-git
    ```
- **Uncommitted changes**Commit them or use `--allow-dirty` if you know what you’re doing.
- **Branch not found**Ensure `` exists on `origin`; `` must exist locally or on remote.

---

License
-------

[](#license)

[MIT](./LICENSE) © TurboCat Technology

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance68

Regular maintenance activity

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a340692e6201f765480090e3e6577662f599edefa064cee6b452c35eb0db26e?d=identicon)[turbocat](/maintainers/turbocat)

---

Top Contributors

[![ideacatlab](https://avatars.githubusercontent.com/u/71712824?v=4)](https://github.com/ideacatlab "ideacatlab (14 commits)")

### Embed Badge

![Health badge](/badges/turbocat-power-pr/health.svg)

```
[![Health](https://phpackages.com/badges/turbocat-power-pr/health.svg)](https://phpackages.com/packages/turbocat-power-pr)
```

###  Alternatives

[infocyph/uid

UUID (RFC 4122 + Unofficial/Draft), ULID, Snowflake ID, Sonyflake ID, TBSL (library exclusive) generator!

105.1k](/packages/infocyph-uid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
