claude-teammate 0.1.44 → 0.1.45

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-teammate",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "description": "CLI bootstrapper for Claude Teammate.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1306,11 +1306,9 @@ async function processPullRequestImplementation({
1306
1306
  await github.markPullRequestReady(repo.url, detail.number);
1307
1307
  await transitionLinkedJiraIssueToReview(detail.title, jira, logger, detail.number);
1308
1308
  }
1309
- await github.postIssueComment(
1310
- repo.url,
1311
- detail.number,
1312
- successCommentBody || formatPullRequestOutcomeComment(result.summary, "Implemented the requested changes and pushed them to this PR branch.")
1313
- );
1309
+ const successComment = successCommentBody || formatPullRequestOutcomeComment(result.summary, "Implemented the requested changes and pushed them to this PR branch.");
1310
+ await github.postIssueComment(repo.url, detail.number, successComment);
1311
+ await postLinkedJiraComment(extractJiraKey(detail.title), successComment, jira, logger);
1314
1312
  await logger.info("Pull request implemented", {
1315
1313
  repo: repo.url,
1316
1314
  pr: detail.number,
@@ -1336,11 +1334,9 @@ async function processPullRequestImplementation({
1336
1334
  title: detail.title,
1337
1335
  body: stuckBody
1338
1336
  });
1339
- await github.postIssueComment(
1340
- repo.url,
1341
- detail.number,
1342
- formatPullRequestOutcomeComment(result.summary, "I could not complete the requested changes and the implementation is currently stuck.")
1343
- );
1337
+ const stuckComment = formatPullRequestOutcomeComment(result.summary, "I could not complete the requested changes and the implementation is currently stuck.");
1338
+ await github.postIssueComment(repo.url, detail.number, stuckComment);
1339
+ await postLinkedJiraComment(extractJiraKey(detail.title), stuckComment, jira, logger);
1344
1340
  await logger.info("Pull request marked STUCK", {
1345
1341
  repo: repo.url,
1346
1342
  pr: detail.number,
@@ -1376,11 +1372,9 @@ async function processPullRequestImplementation({
1376
1372
  title: detail.title,
1377
1373
  body: stuckBody
1378
1374
  });
1379
- await github.postIssueComment(
1380
- repo.url,
1381
- detail.number,
1382
- formatPullRequestOutcomeComment(message, "I hit an error while trying to implement the requested changes.")
1383
- );
1375
+ const errorComment = formatPullRequestOutcomeComment(message, "I hit an error while trying to implement the requested changes.");
1376
+ await github.postIssueComment(repo.url, detail.number, errorComment);
1377
+ await postLinkedJiraComment(extractJiraKey(detail.title), errorComment, jira, logger);
1384
1378
  await logger.error("Pull request implementation failed", {
1385
1379
  repo: repo.url,
1386
1380
  pr: detail.number,
@@ -2510,3 +2504,15 @@ async function transitionLinkedJiraIssueToReview(pullRequestTitle, jira, logger,
2510
2504
  moved: transition.transitioned ? "yes" : "no"
2511
2505
  });
2512
2506
  }
2507
+
2508
+ async function postLinkedJiraComment(jiraKey, body, jira, logger) {
2509
+ if (!jiraKey) {
2510
+ return;
2511
+ }
2512
+ try {
2513
+ await jira.postComment(jiraKey, body);
2514
+ await logger.info("Mirrored PR comment to linked Jira issue", { issue: jiraKey });
2515
+ } catch (error) {
2516
+ await logger.error("Failed to mirror PR comment to linked Jira issue", { issue: jiraKey, error });
2517
+ }
2518
+ }