Skip to content

Commit 887f442

Browse files
authored
Add linear ticket ID to embeds (#335)
### Notes This adds the Ticket ID to the embed field title and as an extra parameter.
2 parents 43b08fb + 6a94883 commit 887f442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: discord-scripts/fix-linear-embed.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async function createLinearEmbed(
127127

128128
if (comment) {
129129
embed
130-
.setTitle(`Comment on Issue: ${issue.title}`)
130+
.setTitle(`Comment on [${issue.identifier}] ${issue.title}`)
131131
.setURL(
132132
`https://linear.app/${teamName}/issue/${issue.identifier}#comment-${commentId}`,
133133
)
@@ -152,7 +152,7 @@ async function createLinearEmbed(
152152
)
153153
} else {
154154
embed
155-
.setTitle(`Issue: ${issue.title}`)
155+
.setTitle(`[${issue.identifier}] ${issue.title}`)
156156
.setURL(`https://linear.app/${teamName}/issue/${issue.identifier}`)
157157
.setDescription(
158158
truncateToWords(issue.description, "No description available.", 50),

0 commit comments

Comments
 (0)