paperclip-github-plugin 0.9.10 → 0.9.12
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/README.md +2 -2
- package/dist/manifest.js +1 -1
- package/dist/ui/index.js +108 -14
- package/dist/ui/index.js.map +3 -3
- package/dist/worker.js +9 -9
- package/package.json +4 -4
package/dist/worker.js
CHANGED
|
@@ -5478,7 +5478,7 @@ function getPaperclipIssueSyncContext(issue) {
|
|
|
5478
5478
|
executionState: normalizePaperclipIssueExecutionState(record.executionState)
|
|
5479
5479
|
};
|
|
5480
5480
|
}
|
|
5481
|
-
function
|
|
5481
|
+
function hasScheduledPaperclipIssueMonitor(syncContext) {
|
|
5482
5482
|
const monitor = syncContext.executionState?.monitor;
|
|
5483
5483
|
if (!monitor) {
|
|
5484
5484
|
return false;
|
|
@@ -5487,7 +5487,7 @@ function hasActivePaperclipIssueMonitor(syncContext) {
|
|
|
5487
5487
|
return false;
|
|
5488
5488
|
}
|
|
5489
5489
|
const normalizedStatus = monitor.status?.trim().toLowerCase();
|
|
5490
|
-
return normalizedStatus
|
|
5490
|
+
return normalizedStatus === "scheduled";
|
|
5491
5491
|
}
|
|
5492
5492
|
function hasUnresolvedPaperclipIssueBlockerSummary(blockers) {
|
|
5493
5493
|
if (!Array.isArray(blockers)) {
|
|
@@ -5708,7 +5708,7 @@ function isClearableMaintainerWaitExecutionState(executionState) {
|
|
|
5708
5708
|
if (executionState === null) {
|
|
5709
5709
|
return true;
|
|
5710
5710
|
}
|
|
5711
|
-
if (
|
|
5711
|
+
if (hasScheduledPaperclipIssueMonitor({
|
|
5712
5712
|
assignee: null,
|
|
5713
5713
|
executionPolicy: null,
|
|
5714
5714
|
executionState
|
|
@@ -9559,8 +9559,8 @@ async function cancelUnmappedTransferredGitHubIssue(ctx, params) {
|
|
|
9559
9559
|
};
|
|
9560
9560
|
}
|
|
9561
9561
|
const paperclipIssueSyncContext = getPaperclipIssueSyncContext(paperclipIssue);
|
|
9562
|
-
if (
|
|
9563
|
-
ctx.logger.info("GitHub sync skipped transferred issue cancellation because an issue monitor is
|
|
9562
|
+
if (hasScheduledPaperclipIssueMonitor(paperclipIssueSyncContext)) {
|
|
9563
|
+
ctx.logger.info("GitHub sync skipped transferred issue cancellation because an issue monitor is scheduled.", {
|
|
9564
9564
|
companyId,
|
|
9565
9565
|
issueId: params.importedIssue.paperclipIssueId,
|
|
9566
9566
|
transferredRepositoryUrl: params.transferredRepository.url,
|
|
@@ -9899,8 +9899,8 @@ async function synchronizePaperclipIssueStatuses(ctx, octokit, repository, mappi
|
|
|
9899
9899
|
importedIssue.lastSeenCommentCount = snapshot.commentCount;
|
|
9900
9900
|
importedIssue.lastSeenGitHubState = snapshot.state;
|
|
9901
9901
|
importedIssue.linkedPullRequestCommentCounts = currentLinkedPullRequestCommentCounts;
|
|
9902
|
-
if (
|
|
9903
|
-
ctx.logger.info("GitHub sync skipped Paperclip issue state changes because an issue monitor is
|
|
9902
|
+
if (hasScheduledPaperclipIssueMonitor(paperclipIssueSyncContext)) {
|
|
9903
|
+
ctx.logger.info("GitHub sync skipped Paperclip issue state changes because an issue monitor is scheduled.", {
|
|
9904
9904
|
companyId: mapping.companyId,
|
|
9905
9905
|
issueId: importedIssue.paperclipIssueId,
|
|
9906
9906
|
repositoryUrl: repository.url,
|
|
@@ -10166,8 +10166,8 @@ async function synchronizePaperclipPullRequestIssueStatuses(ctx, octokit, mappin
|
|
|
10166
10166
|
const shouldClearTransitionAssignee = nextStatus === "in_review" && (nextTransitionAssignee === null || shouldPreserveMaintainerWaitRouting) && paperclipIssueSyncContext.assignee !== null;
|
|
10167
10167
|
const nextAssigneeChanged = nextTransitionAssignee ? !doesPaperclipIssueAssigneeMatch(paperclipIssueSyncContext.assignee, nextTransitionAssignee.principal) : false;
|
|
10168
10168
|
const shouldWakeTransitionAssignee = paperclipIssue.status !== nextStatus && nextTransitionAssignee?.principal.kind === "agent" && isActionablePaperclipIssueStatus(nextStatus) && (nextAssigneeChanged || paperclipIssue.status !== nextStatus);
|
|
10169
|
-
if (
|
|
10170
|
-
ctx.logger.info("GitHub sync skipped Paperclip pull request issue state changes because an issue monitor is
|
|
10169
|
+
if (hasScheduledPaperclipIssueMonitor(paperclipIssueSyncContext)) {
|
|
10170
|
+
ctx.logger.info("GitHub sync skipped Paperclip pull request issue state changes because an issue monitor is scheduled.", {
|
|
10171
10171
|
companyId: mapping.companyId,
|
|
10172
10172
|
issueId: paperclipIssueId,
|
|
10173
10173
|
repositoryUrl: primaryRepository?.url,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paperclip-github-plugin",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12",
|
|
4
4
|
"description": "Paperclip plugin for synchronizing GitHub issues into Paperclip projects.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"packageManager": "pnpm@11.
|
|
7
|
+
"packageManager": "pnpm@11.2.2",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=20"
|
|
10
10
|
},
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "24.12.4",
|
|
53
|
-
"@types/react": "19.2.
|
|
53
|
+
"@types/react": "19.2.15",
|
|
54
54
|
"esbuild": "0.28.0",
|
|
55
55
|
"playwright": "1.60.0",
|
|
56
|
-
"tsx": "4.22.
|
|
56
|
+
"tsx": "4.22.3",
|
|
57
57
|
"typescript": "6.0.3"
|
|
58
58
|
}
|
|
59
59
|
}
|