diff --git a/src/entrypoints/update-comment-link.ts b/src/entrypoints/update-comment-link.ts index f3fef4aa..65869310 100644 --- a/src/entrypoints/update-comment-link.ts +++ b/src/entrypoints/update-comment-link.ts @@ -24,13 +24,13 @@ async function run() { const context = parseGitHubContext(); const { owner, repo } = context.repository; - + // This script is only called for entity-based events if (!context.entityNumber) { throw new Error("update-comment-link requires an entity number"); } const entityNumber = context.entityNumber; - + const octokit = createOctokit(githubToken); const serverUrl = GITHUB_SERVER_URL; diff --git a/src/github/operations/comments/create-initial.ts b/src/github/operations/comments/create-initial.ts index 9e2dd88a..72fd3786 100644 --- a/src/github/operations/comments/create-initial.ts +++ b/src/github/operations/comments/create-initial.ts @@ -21,7 +21,7 @@ export async function createInitialComment( context: ParsedGitHubContext, ) { const { owner, repo } = context.repository; - + // This function is only called for entity-based events if (!context.entityNumber) { throw new Error("createInitialComment requires an entity number"); diff --git a/src/modes/tag/index.ts b/src/modes/tag/index.ts index c19d181f..9f4ef455 100644 --- a/src/modes/tag/index.ts +++ b/src/modes/tag/index.ts @@ -56,7 +56,7 @@ export const tagMode: Mode = { // Check if actor is human await checkHumanActor(octokit.rest, context); - // Create initial tracking comment (always created for tag mode) + // Create initial tracking comment const commentData = await createInitialComment(octokit.rest, context); const commentId = commentData.id;