@squirrelsoft/plane-importer
v0.9.0
Published
CLI tool to sync GitHub issues with Plane
Maintainers
Readme
Plane Importer
A CLI tool to synchronize GitHub issues with Plane projects. This tool allows bidirectional synchronization of issues between GitHub and Plane, maintaining consistency across both platforms.
Features
- Import GitHub issues to Plane
- Sync updates between GitHub and Plane
- Track changes using content hashing
- Bidirectional synchronization
- CLI interface for easy management
Installation
- Clone the repository:
git clone https://github.com/yourusername/plane-importer.git
cd plane-importer- Install dependencies:
npm install- Build the project:
npm run build- Create a
.envfile with your API keys:
GITHUB_TOKEN=your_github_token
PLANE_API_KEY=your_plane_api_keyConfiguration
- Copy the example configuration:
cp .plane-sync.json my-config.json- Edit the configuration file with your settings:
{
"github": {
"owner": "your-org-name",
"repo": "your-repo-name",
"projectNumber": 1,
"isOrgProject": false
},
"plane": {
"baseUrl": "https://your-plane-instance.com",
"workspaceSlug": "your-workspace",
"projectSlug": "your-project-id"
},
"sync": {
"direction": "github-to-plane",
"autoConvertBacklogItems": false
}
}Usage
To sync issues using the default config file (.plane-sync.json):
npx @squirrelsoft/plane-importer syncTo use a custom config file:
npx @squirrelsoft/plane-importer sync --config my-config.jsonTo view sync status:
npx @squirrelsoft/plane-importer statusConfiguration Options
github.owner: Your GitHub username or organization namegithub.repo: The repository namegithub.projectNumber: The project number in GitHubgithub.isOrgProject: Whether this is an organization project (true) or repository project (false)plane.baseUrl: Your Plane instance URLplane.workspaceSlug: Your Plane workspace slugplane.projectSlug: Your Plane project IDsync.direction: One of "github-to-plane", "plane-to-github", or "both"sync.autoConvertBacklogItems: Whether to automatically convert GitHub project items to issues
Development
- Run in development mode:
npm run dev- Run tests:
npm testLicense
MIT
