paperclip-github-plugin 0.8.11 → 0.8.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 CHANGED
@@ -94,7 +94,7 @@ If a Paperclip issue was created locally or by an agent workflow before GitHub S
94
94
 
95
95
  Manual GitHub issue links are added to the same import registry and issue-link entity used by normal sync, so future syncs update the Paperclip issue from the GitHub issue. Manual pull request links are added to the PR-link entity used by the project Pull Requests page, so future syncs monitor PR status even when there is no closing GitHub issue.
96
96
 
97
- Linked Paperclip issues can also be unlinked from the GitHub detail surface. Unlinking removes the active GitHub Sync link metadata and import-registry tracking for that Paperclip issue without deleting either side, so the issue stays local until it is linked again.
97
+ Operators can unlink a linked Paperclip issue from the GitHub detail surface when they intentionally want GitHub Sync to stop updating it. Agent-facing tools and native agent API routes can create durable issue and pull request links, but they do not expose an unlink operation; internal sync repair may still tombstone a link when GitHub transfers an issue to an unmapped repository.
98
98
 
99
99
  ### Agent workflows built in
100
100
 
package/dist/manifest.js CHANGED
@@ -642,7 +642,7 @@ var PULL_REQUEST_ASSET_API_ROUTE_URL_PATH = `/api/plugins/${GITHUB_SYNC_PLUGIN_I
642
642
  var require2 = createRequire(import.meta.url);
643
643
  var packageJson = require2("../package.json");
644
644
  var SCHEDULE_TICK_CRON = "* * * * *";
645
- var MANIFEST_VERSION = "0.8.11"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
645
+ var MANIFEST_VERSION = "0.8.12"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
646
646
  var manifest = {
647
647
  id: GITHUB_SYNC_PLUGIN_ID,
648
648
  apiVersion: 1,
package/dist/worker.js CHANGED
@@ -2857,21 +2857,10 @@ async function buildToolbarSyncState(ctx, input) {
2857
2857
  if (entityType === "issue" && entityId && companyId) {
2858
2858
  const link = await resolvePaperclipIssueGitHubLink(ctx, entityId, companyId);
2859
2859
  if (link) {
2860
- const mappings2 = getSyncableMappingsForTarget(settings.mappings, {
2861
- kind: "issue",
2862
- companyId,
2863
- projectId: link.paperclipProjectId,
2864
- issueId: entityId,
2865
- repositoryUrl: link.repositoryUrl,
2866
- githubIssueId: link.githubIssueId,
2867
- githubIssueNumber: link.githubIssueNumber,
2868
- githubIssueUrl: link.githubIssueUrl,
2869
- displayLabel: `issue #${link.githubIssueNumber}`
2870
- });
2871
2860
  return {
2872
2861
  kind: "issue",
2873
2862
  visible: false,
2874
- canRun: githubTokenConfigured && mappings2.length > 0,
2863
+ canRun: githubTokenConfigured,
2875
2864
  label: `Sync #${link.githubIssueNumber}`,
2876
2865
  message: `Sync ${link.repositoryUrl.replace(/^https:\/\/github\.com\//, "")} issue #${link.githubIssueNumber}.`,
2877
2866
  syncState: settings.syncState,
@@ -2880,20 +2869,10 @@ async function buildToolbarSyncState(ctx, input) {
2880
2869
  };
2881
2870
  }
2882
2871
  const pullRequestLink = await resolvePaperclipIssueGitHubPullRequestLink(ctx, entityId, companyId);
2883
- const mappings = pullRequestLink ? getSyncableMappingsForTarget(settings.mappings, {
2884
- kind: "issue",
2885
- companyId,
2886
- projectId: pullRequestLink.data.paperclipProjectId,
2887
- issueId: entityId,
2888
- repositoryUrl: pullRequestLink.data.repositoryUrl,
2889
- githubPullRequestNumber: pullRequestLink.data.githubPullRequestNumber,
2890
- githubPullRequestUrl: pullRequestLink.data.githubPullRequestUrl,
2891
- displayLabel: `pull request #${pullRequestLink.data.githubPullRequestNumber}`
2892
- }) : [];
2893
2872
  return {
2894
2873
  kind: "issue",
2895
2874
  visible: false,
2896
- canRun: githubTokenConfigured && mappings.length > 0,
2875
+ canRun: githubTokenConfigured && Boolean(pullRequestLink),
2897
2876
  label: pullRequestLink?.data.githubPullRequestNumber ? `Sync PR #${pullRequestLink.data.githubPullRequestNumber}` : "Sync issue",
2898
2877
  message: pullRequestLink ? `Sync ${pullRequestLink.data.repositoryUrl.replace(/^https:\/\/github\.com\//, "")} pull request #${pullRequestLink.data.githubPullRequestNumber}.` : "This Paperclip issue is not linked to GitHub yet.",
2899
2878
  syncState: settings.syncState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperclip-github-plugin",
3
- "version": "0.8.11",
3
+ "version": "0.8.12",
4
4
  "description": "Paperclip plugin for synchronizing GitHub issues into Paperclip projects.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",