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/README.md +175 -181
- package/dist/manifest.js +1 -1
- package/dist/ui/index.js +152 -38
- package/dist/ui/index.js.map +4 -4
- package/dist/worker.js +6 -5
- package/package.json +1 -1
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(
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
5502
|
+
paperclipApiBaseUrl,
|
|
5502
5503
|
linkedPullRequestsByIssueNumber,
|
|
5503
5504
|
issueStatusSnapshotCache,
|
|
5504
5505
|
pullRequestStatusCache,
|