Skip to content

Commit

Permalink
Merge pull request #48 from kunai-consulting/linear-soc2
Browse files Browse the repository at this point in the history
feat: comment author on post
  • Loading branch information
thejackshelton-kunaico authored Aug 23, 2024
2 parents c5633e1 + 7e7dd1e commit 01fae1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/sync-pr-to-linear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ async function syncPrToLinear() {

const commentBody = process.env.COMMENT_BODY;

const fullComment = `@[${process.env.COMMENT_AUTHOR}](${process.env.COMMENT_AUTHOR_PROFILE}): ${commentBody}`;

const createdComment = await linearClient.createComment({
issueId: existingIssue.id,
body: commentBody,
body: fullComment,
});

console.log(`Comment added to Linear issue ${existingIssue.id}`);
return `@[${process.env.COMMENT_AUTHOR}](${process.env.COMMENT_AUTHOR_PROFILE}): ${createdComment}`;
return createdComment;
}

syncPrToLinear().catch((error) => {
Expand Down

0 comments on commit 01fae1c

Please sign in to comment.