A CLI tool that pushes commits, creates GitHub PRs, and automatically updates linked ClickUp tasks.
- Git push with automatic upstream tracking
- GitHub PR creation with auto-generated titles from branch names
- ClickUp integration:
- Extracts task ID from branch name
- Posts comment with PR link and description
- Updates task status to "REVIEW - TECH MANAGER"
- Clipboard image support - attach screenshots directly from Windows clipboard
- Clone this repository
- Install dependencies:
npm install
- Build the project:
npm run build
- Link globally:
npm link
Create a .env file in one of these locations (checked in order):
~/.pr-to-clickup/.env(recommended - works from any directory)- Current working directory
.env - Package installation directory
Windows: C:\Users\YourName\.pr-to-clickup\.env
Mac/Linux: ~/.pr-to-clickup/.env
# Required
GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxx
CLICKUP_API_TOKEN=pk_xxxxxxxxxxxxxxxxxxxx
# Optional
CLICKUP_REVIEW_STATUS=REVIEW - TECH MANAGER
PR_TARGET_BRANCH=mainGitHub Token:
- Go to GitHub → Settings → Developer settings → Personal access tokens
- Generate a new token with
reposcope
ClickUp Token:
- Go to ClickUp → Settings → Apps
- Click "Generate" under API Token
pushpush -prpush -pr "Added login functionality and fixed validation bugs"push -pr "Updated the dashboard UI" --imagepush -pr "WIP: New feature" --draftpush -pr --target developpush -pr --task BZP-12345push -pr --skip-clickuppush -pr --no-pushIf no ClickUp task ID is found in the branch name, you'll be prompted:
⚠ No ClickUp task ID found in branch name
Enter task ID (e.g., BZP-12345) or press Enter to skip: _
You can either:
- Type the task ID and press Enter
- Press Enter to skip ClickUp integration
The tool automatically extracts ClickUp task IDs from branch names. The task ID should have an UPPERCASE prefix (2-4 letters) followed by a hyphen and alphanumeric ID.
Supported formats (the tool finds the last matching pattern):
Testing-BZL-1740→BZL-1740Concursos-GAL-Agendamento-BZP-22655→BZP-22655feature/CU-86c26xjrq-description→CU-86c26xjrqfix/ABC-123→ABC-123
The prefix must be uppercase letters (e.g., BZP, CU, ABC).
- Git Push - Pushes your commits to the remote
- Create PR - Creates a GitHub PR with:
- Title generated from branch name (or custom if provided)
- Body with ClickUp task link, description, and commit list
- ClickUp Comment - Adds a comment to the task with:
- PR link
- Description (if provided)
- Screenshots (if
--imageflag used)
- Status Update - Changes task status to "REVIEW - TECH MANAGER"
"No ClickUp task ID found in branch name"
- Make sure your branch name includes the task ID (e.g.,
feature/CU-abc123-description)
"Status not found"
- The status name in your ClickUp list might be different
- Update
CLICKUP_REVIEW_STATUSin your.envfile
"Clipboard image support is only available on Windows"
- The
--imageflag currently only works on Windows
MIT