issuesync
Version:
A library and CLI tool for listing and synchronizing issues between GitHub repositories
127 lines (94 loc) ⢠3.2 kB
Markdown
# IssueSync - Package Ready for Publication
## ā
Validation Complete
The IssueSync package has been successfully restructured and is now ready for publication to npm. All tests pass and the package meets npm publishing standards.
## š¦ Package Information
- **Name**: `issuesync`
- **Version**: `1.0.0`
- **Type**: Dual-purpose library and CLI tool
- **License**: MIT
- **Author**: kybaloo
## š Ready Features
### Library API
- `init(config)` - Initialize with GitHub authentication
- `listIssues(options)` - List issues from repositories
- `syncIssues(options)` - Synchronize issues between repositories
### CLI Tool
- `issuesync list` - List repository issues
- `issuesync sync` - Synchronize issues between repositories
- Global installation support via npm
## š Package Structure
```
issuesync/
āāā lib/ # Library core
ā āāā index.js # Main library entry point
ā āāā index.d.ts # TypeScript definitions
ā āāā github.js # GitHub authentication
ā āāā services/
ā āāā issueService.js
ā āāā syncService.js
āāā cli.js # CLI entry point
āāā examples/ # Integration examples
āāā docs/ # Documentation
āāā package.json # Package configuration
āāā README.md # Documentation
āāā LICENSE # MIT License
āāā .npmignore # Publication exclusions
```
## š§ Integration Examples Available
1. **Web Application** (Express.js integration)
2. **Custom CLI Tools** (Building on top of IssueSync)
3. **CI/CD Automation** (GitHub Actions, Jenkins)
4. **VS Code Extensions** (Including Copilot integration)
## š Publication Steps
To publish to npm:
```bash
# 1. Login to npm
npm login
# 2. Publish the package
npm publish
```
## š Installation Methods
After publication, users can install via:
```bash
# Global CLI installation
npm install -g issuesync
# Project dependency
npm install issuesync
# Yarn
yarn add issuesync
```
## ⨠Usage Examples
### CLI Usage
```bash
# List issues
issuesync list --owner microsoft --repo vscode --state open
# Sync issues
issuesync sync --source-owner org1 --source-repo repo1 --target-owner org2 --target-repo repo2
```
### Library Usage
```javascript
const issueSync = require('issuesync');
await issueSync.init({
token: process.env.GITHUB_TOKEN
});
const issues = await issueSync.listIssues({
owner: 'microsoft',
repo: 'vscode',
state: 'open'
});
```
## šÆ Multi-Platform Compatibility
- ā
Node.js 14+
- ā
CommonJS modules
- ā
TypeScript support
- ā
Cross-platform CLI (Windows, macOS, Linux)
- ā
Integration-ready for various contexts
## š Next Steps
The package is production-ready and can be:
1. Published to npm registry
2. Integrated into various projects
3. Extended with additional features
4. Used as a foundation for GitHub automation tools
---
**Status**: ā
READY FOR PUBLICATION
**Last Validated**: June 9, 2025