paperclip-github-plugin 0.2.1 → 0.2.2

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/dist/worker.js CHANGED
@@ -5128,6 +5128,7 @@ async function performSync(ctx, trigger, options = {}) {
5128
5128
  const config = await getResolvedConfig(ctx);
5129
5129
  const importRegistry = normalizeImportRegistry(await ctx.state.get(IMPORT_REGISTRY_SCOPE));
5130
5130
  const token = typeof options.resolvedToken === "string" ? options.resolvedToken : await resolveGithubToken(ctx);
5131
+ const paperclipApiBaseUrl = getConfiguredPaperclipApiBaseUrl(settings, config);
5131
5132
  const mappings = getSyncableMappingsForTarget(settings.mappings, options.target);
5132
5133
  activePaperclipApiAuthTokensByCompanyId = null;
5133
5134
  const failureContext = {
@@ -5152,7 +5153,7 @@ async function performSync(ctx, trigger, options = {}) {
5152
5153
  return next;
5153
5154
  }
5154
5155
  const mappingsMissingBoardAccess = getMappingsMissingPaperclipBoardAccess(settings, config, mappings);
5155
- if (mappingsMissingBoardAccess.length > 0 && await detectPaperclipBoardAccessRequirement(settings.paperclipApiBaseUrl)) {
5156
+ if (mappingsMissingBoardAccess.length > 0 && await detectPaperclipBoardAccessRequirement(paperclipApiBaseUrl)) {
5156
5157
  const next = {
5157
5158
  ...settings,
5158
5159
  syncState: createSetupConfigurationErrorSyncState("missing_board_access", trigger)
@@ -5276,7 +5277,7 @@ async function performSync(ctx, trigger, options = {}) {
5276
5277
  updateSyncFailureContext(failureContext, {
5277
5278
  phase: "loading_paperclip_labels"
5278
5279
  });
5279
- availableLabels = supportsPaperclipLabelMapping && companyId ? await buildPaperclipLabelDirectory(ctx, companyId, settings.paperclipApiBaseUrl) : /* @__PURE__ */ new Map();
5280
+ availableLabels = supportsPaperclipLabelMapping && companyId ? await buildPaperclipLabelDirectory(ctx, companyId, paperclipApiBaseUrl) : /* @__PURE__ */ new Map();
5280
5281
  if (companyId) {
5281
5282
  companyLabelDirectoryCache.set(companyId, availableLabels);
5282
5283
  }
@@ -5380,7 +5381,7 @@ async function performSync(ctx, trigger, options = {}) {
5380
5381
  repositoryUrl: repository.url,
5381
5382
  githubIssueNumber: void 0
5382
5383
  });
5383
- availableLabels = supportsPaperclipLabelMapping && companyId ? await buildPaperclipLabelDirectory(ctx, companyId, settings.paperclipApiBaseUrl) : /* @__PURE__ */ new Map();
5384
+ availableLabels = supportsPaperclipLabelMapping && companyId ? await buildPaperclipLabelDirectory(ctx, companyId, paperclipApiBaseUrl) : /* @__PURE__ */ new Map();
5384
5385
  if (companyId) {
5385
5386
  companyLabelDirectoryCache.set(companyId, availableLabels);
5386
5387
  }
@@ -5449,7 +5450,7 @@ async function performSync(ctx, trigger, options = {}) {
5449
5450
  advancedSettings,
5450
5451
  issue,
5451
5452
  availableLabels,
5452
- settings.paperclipApiBaseUrl,
5453
+ paperclipApiBaseUrl,
5453
5454
  importRegistryByIssueId,
5454
5455
  existingImportedPaperclipIssuesByUrl,
5455
5456
  nextRegistry,
@@ -5498,7 +5499,7 @@ async function performSync(ctx, trigger, options = {}) {
5498
5499
  importedIssuesForSynchronization,
5499
5500
  createdIssueIds,
5500
5501
  availableLabels,
5501
- settings.paperclipApiBaseUrl,
5502
+ paperclipApiBaseUrl,
5502
5503
  linkedPullRequestsByIssueNumber,
5503
5504
  issueStatusSnapshotCache,
5504
5505
  pullRequestStatusCache,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperclip-github-plugin",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Paperclip plugin for synchronizing GitHub issues into Paperclip projects.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",