Files
Alex PlateandClaude Opus 4.5 b8d4d38253 Add YouTrack skill for Claude Code integration
Create a Claude skill for interacting with YouTrack issue tracker:
- Add CLI wrapper scripts in scripts-ts/src/youtrack-cli/
- Add release management functions to youtrack.ts (ported from Kotlin)
- Update youtrackAutoAnalysis.yml to use the skill instead of curl
- Document YouTrack usage in CLAUDE.md

CLI scripts:
- add-comment.ts, add-tag.ts, remove-tag.ts
- set-status.ts, get-ticket.ts, set-fix-version.ts
- create-version.ts, delete-version.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 13:44:27 +02:00

38 lines
915 B
TypeScript

#!/usr/bin/env npx tsx
/**
* CLI wrapper to create a new release version in YouTrack
*
* Usage:
* npx tsx scripts-ts/src/youtrack-cli/create-version.ts <version-name>
*
* Examples:
* npx tsx scripts-ts/src/youtrack-cli/create-version.ts "2.28.0"
*
* Environment:
* YOUTRACK_TOKEN - Required. YouTrack API token.
*/
import { createReleaseVersion } from "../tools/youtrack.js";
async function main() {
const args = process.argv.slice(2);
if (args.length !== 1) {
console.error("Usage: create-version.ts <version-name>");
console.error("Example: create-version.ts \"2.28.0\"");
process.exit(1);
}
const [versionName] = args;
try {
const versionId = await createReleaseVersion(versionName);
console.log(`Version ID: ${versionId}`);
} catch (error) {
console.error(`Error: ${error instanceof Error ? error.message : error}`);
process.exit(1);
}
}
main();