mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2026-11-05 15:19:12 +01:00
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>
38 lines
940 B
TypeScript
38 lines
940 B
TypeScript
#!/usr/bin/env npx tsx
|
|
/**
|
|
* CLI wrapper to set the status of a YouTrack ticket
|
|
*
|
|
* Usage:
|
|
* npx tsx scripts-ts/src/youtrack-cli/set-status.ts <ticket-id> <status>
|
|
*
|
|
* Examples:
|
|
* npx tsx scripts-ts/src/youtrack-cli/set-status.ts VIM-1234 "Ready To Release"
|
|
* npx tsx scripts-ts/src/youtrack-cli/set-status.ts VIM-1234 "Open"
|
|
*
|
|
* Environment:
|
|
* YOUTRACK_TOKEN - Required. YouTrack API token.
|
|
*/
|
|
|
|
import { setStatus } from "../tools/youtrack.js";
|
|
|
|
async function main() {
|
|
const args = process.argv.slice(2);
|
|
|
|
if (args.length !== 2) {
|
|
console.error("Usage: set-status.ts <ticket-id> <status>");
|
|
console.error("Example: set-status.ts VIM-1234 \"Ready To Release\"");
|
|
process.exit(1);
|
|
}
|
|
|
|
const [ticketId, status] = args;
|
|
|
|
try {
|
|
await setStatus(ticketId, status);
|
|
} catch (error) {
|
|
console.error(`Error: ${error instanceof Error ? error.message : error}`);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
main();
|