paperclip-github-plugin 0.4.7 → 0.4.8
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 +191 -88
- package/dist/ui/index.js.map +2 -2
- package/dist/worker.js +22 -1
- package/package.json +1 -1
package/dist/worker.js
CHANGED
|
@@ -2528,6 +2528,13 @@ async function buildIssueGitHubDetails(ctx, input) {
|
|
|
2528
2528
|
githubIssueNumber: entityMatch.data.githubIssueNumber,
|
|
2529
2529
|
githubIssueUrl: entityMatch.data.githubIssueUrl,
|
|
2530
2530
|
repositoryUrl: entityMatch.data.repositoryUrl,
|
|
2531
|
+
...entityMatch.data.creatorLogin ? {
|
|
2532
|
+
creator: buildProjectPullRequestPerson({
|
|
2533
|
+
login: entityMatch.data.creatorLogin,
|
|
2534
|
+
url: entityMatch.data.creatorUrl,
|
|
2535
|
+
avatarUrl: entityMatch.data.creatorAvatarUrl
|
|
2536
|
+
})
|
|
2537
|
+
} : {},
|
|
2531
2538
|
githubIssueState: entityMatch.data.githubIssueState,
|
|
2532
2539
|
githubIssueStateReason: entityMatch.data.githubIssueStateReason,
|
|
2533
2540
|
commentsCount: entityMatch.data.commentsCount,
|
|
@@ -3737,13 +3744,18 @@ function normalizeGitHubIssueLabels(value) {
|
|
|
3737
3744
|
return labels;
|
|
3738
3745
|
}
|
|
3739
3746
|
function normalizeGitHubIssueRecord(issue) {
|
|
3747
|
+
const authorLogin = normalizeGitHubUsername(issue.user?.login);
|
|
3748
|
+
const authorUrl = typeof issue.user?.html_url === "string" && issue.user.html_url.trim() ? issue.user.html_url.trim() : void 0;
|
|
3749
|
+
const authorAvatarUrl = typeof issue.user?.avatar_url === "string" && issue.user.avatar_url.trim() ? issue.user.avatar_url.trim() : void 0;
|
|
3740
3750
|
return {
|
|
3741
3751
|
id: issue.id,
|
|
3742
3752
|
number: issue.number,
|
|
3743
3753
|
title: stripNullBytes(issue.title),
|
|
3744
3754
|
body: typeof issue.body === "string" ? stripNullBytes(issue.body) : null,
|
|
3745
3755
|
htmlUrl: issue.html_url,
|
|
3746
|
-
...
|
|
3756
|
+
...authorLogin ? { authorLogin } : {},
|
|
3757
|
+
...authorUrl ? { authorUrl } : {},
|
|
3758
|
+
...authorAvatarUrl ? { authorAvatarUrl } : {},
|
|
3747
3759
|
...normalizeGitHubLowercaseString(issue.author_association) ? { authorAssociation: normalizeGitHubLowercaseString(issue.author_association) } : {},
|
|
3748
3760
|
labels: normalizeGitHubIssueLabels(issue.labels),
|
|
3749
3761
|
state: issue.state === "closed" ? "closed" : "open",
|
|
@@ -4983,6 +4995,9 @@ function normalizeGitHubIssueLinkEntityData(value) {
|
|
|
4983
4995
|
const githubIssueId = typeof record.githubIssueId === "number" && record.githubIssueId > 0 ? Math.floor(record.githubIssueId) : void 0;
|
|
4984
4996
|
const githubIssueNumber = typeof record.githubIssueNumber === "number" && record.githubIssueNumber > 0 ? Math.floor(record.githubIssueNumber) : void 0;
|
|
4985
4997
|
const githubIssueUrl = typeof record.githubIssueUrl === "string" ? normalizeGitHubIssueHtmlUrl(record.githubIssueUrl) : void 0;
|
|
4998
|
+
const creatorLogin = typeof record.creatorLogin === "string" ? normalizeGitHubUsername(record.creatorLogin) : void 0;
|
|
4999
|
+
const creatorUrl = typeof record.creatorUrl === "string" && record.creatorUrl.trim() ? record.creatorUrl.trim() : void 0;
|
|
5000
|
+
const creatorAvatarUrl = typeof record.creatorAvatarUrl === "string" && record.creatorAvatarUrl.trim() ? record.creatorAvatarUrl.trim() : void 0;
|
|
4986
5001
|
const githubIssueState = record.githubIssueState === "closed" ? "closed" : record.githubIssueState === "open" ? "open" : void 0;
|
|
4987
5002
|
const commentsCount = typeof record.commentsCount === "number" && record.commentsCount >= 0 ? Math.floor(record.commentsCount) : 0;
|
|
4988
5003
|
const syncedAt = typeof record.syncedAt === "string" && record.syncedAt.trim() ? record.syncedAt.trim() : void 0;
|
|
@@ -4997,6 +5012,9 @@ function normalizeGitHubIssueLinkEntityData(value) {
|
|
|
4997
5012
|
githubIssueId,
|
|
4998
5013
|
githubIssueNumber,
|
|
4999
5014
|
githubIssueUrl,
|
|
5015
|
+
...creatorLogin ? { creatorLogin } : {},
|
|
5016
|
+
...creatorUrl ? { creatorUrl } : {},
|
|
5017
|
+
...creatorAvatarUrl ? { creatorAvatarUrl } : {},
|
|
5000
5018
|
githubIssueState,
|
|
5001
5019
|
...githubIssueStateReason ? { githubIssueStateReason } : {},
|
|
5002
5020
|
commentsCount,
|
|
@@ -5201,6 +5219,9 @@ function buildGitHubIssueLinkRecord(target, issueId, githubIssue, linkedPullRequ
|
|
|
5201
5219
|
githubIssueId: githubIssue.id,
|
|
5202
5220
|
githubIssueNumber: githubIssue.number,
|
|
5203
5221
|
githubIssueUrl,
|
|
5222
|
+
...githubIssue.authorLogin ? { creatorLogin: githubIssue.authorLogin } : {},
|
|
5223
|
+
...githubIssue.authorUrl ? { creatorUrl: githubIssue.authorUrl } : {},
|
|
5224
|
+
...githubIssue.authorAvatarUrl ? { creatorAvatarUrl: githubIssue.authorAvatarUrl } : {},
|
|
5204
5225
|
githubIssueState: githubIssue.state,
|
|
5205
5226
|
...githubIssue.stateReason ? { githubIssueStateReason: githubIssue.stateReason } : {},
|
|
5206
5227
|
commentsCount: githubIssue.commentsCount,
|