Skip to content

Commit af20eb7

Browse files
committed
Remove trailing dot handling and delete unused process-single-trailing-dot utility
1 parent fd61469 commit af20eb7

5 files changed

Lines changed: 2 additions & 38 deletions

File tree

‎apps/editor/src/commands/generate-commit-message-command/utils/generate-commit-message-with-api.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import axios from 'axios'
33
import { apply_reasoning_effort } from '@/utils/apply-reasoning-effort'
44
import { dictionary } from '@shared/constants/dictionary'
55
import { make_api_request } from '@/utils/make-api-request'
6-
import { process_single_trailing_dot } from '@/utils/process-single-trailing-dot/process-single-trailing-dot'
76
import { Logger } from '@shared/utils/logger'
87
import { strip_wrapping_quotes } from './strip-wrapping-quotes'
98
import { CommitMessageConfig } from './get-commit-message-config'
@@ -59,9 +58,7 @@ export const generate_commit_message_with_api = async (params: {
5958
)
6059
return null
6160
} else {
62-
let commit_message = process_single_trailing_dot(
63-
response_result.response
64-
)
61+
let commit_message = response_result.response
6562
commit_message = strip_wrapping_quotes(commit_message)
6663
// Sanitize to prevent shell syntax errors
6764
commit_message = commit_message.replace(/[<>`$()]/g, '')

‎apps/editor/src/constants/instructions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const intelligent_update_instructions =
2626
"Refactor the file according to the attached changes without explanations or any other text. Print the file in full because I have a disability which means I can't type and need to be able to just copy and paste."
2727

2828
export const commit_message_instructions =
29-
"Write a brief and precise summary for the changes, limited to a single sentence, if possible and nothing else. Because the summary will be used for a commit message, don't use any markdown formatting. Use an imperative tone to ensure clarity and focus on the primary change or purpose."
29+
"Write a brief and precise summary for the changes, limited to a single sentence. Because the summary will be used for a commit message, don't use any markdown formatting and don't include a trailing dot. Use an imperative tone to ensure clarity and focus on the primary change or purpose."
3030

3131
export const prune_context_instructions_prefix =
3232
"Find all files building modules of the task's scope."

‎apps/editor/src/utils/process-single-trailing-dot/index.ts‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎apps/editor/src/utils/process-single-trailing-dot/process-single-trailing-dot.spec.ts‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎apps/editor/src/utils/process-single-trailing-dot/process-single-trailing-dot.ts‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)