korekt-cli 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "korekt-cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "AI-powered code review CLI - Keep your kode korekt",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -187,6 +187,7 @@ program
187
187
  )
188
188
  .option('--json', 'Output raw API response as JSON')
189
189
  .option('--comment', 'Post review results as PR comments (auto-detects CI provider)')
190
+ .option('--post-ticket', 'Post review results to linked ticket (e.g., JIRA)')
190
191
  .action(async (targetBranch, options) => {
191
192
  const reviewTarget = targetBranch ? `against '${targetBranch}'` : '(auto-detecting fork point)';
192
193
 
@@ -269,6 +270,11 @@ program
269
270
  spinner.text = `Submitting review to the AI... ${elapsed}s`;
270
271
  }, 1000);
271
272
 
273
+ // Add post_to_ticket flag if requested
274
+ if (options.postTicket) {
275
+ payload.post_to_ticket = true;
276
+ }
277
+
272
278
  try {
273
279
  const response = await axios.post(apiEndpoint, payload, {
274
280
  headers: {