chief-tool
v0.0.37
Published
猎户座 - Git Branch Management CLI Tool
Readme
Chief Git CLI Tool
A Git CLI tool that helps create PRs and send notifications to a Lark group.
Features
- Create PRs for different Git hosting platforms (GitHub, GitLab, etc.)
- Send PR notifications to a Lark group via webhook
- Pull target branch to prevent conflicts
- Automatically create merge requests via API (GitLab)
Usage
# Install globally
npm install -g chief
# Create a PR
chief test [target_branch]Environment Variables
You can set the following environment variables to avoid being prompted:
GITLAB_TOKEN: Your GitLab API token for automatically creating PRs
Example:
# Set the GitLab token
export GITLAB_TOKEN="your_gitlab_token"
# Run the command
chief test main