Skip to content

Commit 69ff274

Browse files
docs: fix minor text issues in prompts and comments (#2284)
Fix a few unambiguous spelling, punctuation, and grammar issues in prompt text, comments, docs, and related configuration help text. These changes are documentation-only and do not affect runtime behavior.
1 parent 5c0a4c9 commit 69ff274

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

docs/docs/installation/locally.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
To run PR-Agent locally, you first need to acquire two keys:
22

33
1. An OpenAI key from [here](https://platform.openai.com/api-keys){:target="_blank"}, with access to GPT-4 and o4-mini (or a key for other [language models](../usage-guide/changing_a_model.md), if you prefer).
4-
2. A personal access token from your Git platform (GitHub, GitLab, BitBucket,Gitea) with repo scope. GitHub token, for example, can be issued from [here](https://github.com/settings/tokens){:target="_blank"}
4+
2. A personal access token from your Git platform (GitHub, GitLab, BitBucket, Gitea) with repo scope. GitHub token, for example, can be issued from [here](https://github.com/settings/tokens){:target="_blank"}
55

66
## Using Docker image
77

pr_agent/algo/git_patch_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _calc_context_limits(patch_lines_before):
114114
found_header = True
115115
section_header = ''
116116
else:
117-
pass # its ok to be here. We cant apply dynamic context if the lines are different if 'old' and 'new' hunks
117+
pass # its ok to be here. We can't apply dynamic context if the lines are different if 'old' and 'new' hunks
118118
break
119119

120120
if not found_header:

pr_agent/algo/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ def process_description(description_full: str) -> Tuple[str, List]:
13811381
pattern_back = r'<details>\s*<summary><strong>(.*?)</strong><dd><code>(.*?)</code>.*?</summary>\s*<hr>\s*(.*?)\n\n\s*(.*?)</details>'
13821382
res = re.search(pattern_back, file_data, re.DOTALL)
13831383
if not res or res.lastindex != 4:
1384-
pattern_back = r'<details>\s*<summary><strong>(.*?)</strong>\s*<dd><code>(.*?)</code>.*?</summary>\s*<hr>\s*(.*?)\s*-\s*(.*?)\s*</details>' # looking for hypen ('- ')
1384+
pattern_back = r'<details>\s*<summary><strong>(.*?)</strong>\s*<dd><code>(.*?)</code>.*?</summary>\s*<hr>\s*(.*?)\s*-\s*(.*?)\s*</details>' # looking for hyphen ('- ')
13851385
res = re.search(pattern_back, file_data, re.DOTALL)
13861386
if res and res.lastindex == 4:
13871387
short_filename = res.group(1).strip()

pr_agent/custom_merge_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def load(obj, env=None, silent=True, key=None, filename=None):
2323
None
2424
"""
2525

26-
MAX_TOML_SIZE_IN_BYTES = 100 * 1024 * 1024 # Prevent out of mem. exceptions by limiting to 100 MBs which is sufficient for upto 1M lines
26+
MAX_TOML_SIZE_IN_BYTES = 100 * 1024 * 1024 # Prevent out of mem. exceptions by limiting to 100 MBs which is sufficient for up to 1M lines
2727

2828
# Get the list of files to load
2929
# TODO: hasattr(obj, 'settings_files') for some reason returns False. Need to use 'settings_file'

pr_agent/servers/github_polling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ async def polling_loop():
226226
break
227227
task_queue.clear()
228228

229-
# Dont wait for all processes to complete. Move on to the next iteration
229+
# Don't wait for all processes to complete. Move on to the next iteration
230230
# for p in processes:
231231
# p.join()
232232

pr_agent/settings/.secrets_template.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pat = ""
108108

109109
[azure_devops_server]
110110
# For Azure devops Server basic auth - configured in the webhook creation
111-
# Optional, uncomment if you want to use Azure devops webhooks. Value assinged when you create the webhook
111+
# Optional, uncomment if you want to use Azure devops webhooks. Value assigned when you create the webhook
112112
# webhook_username = "<basic auth user>"
113113
# webhook_password = "<basic auth password>"
114114

pr_agent/settings/configuration.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use_wiki_settings_file=true
2121
use_repo_settings_file=true
2222
use_global_settings_file=true
2323
disable_auto_feedback = false
24-
ai_timeout=120 # 2minutes
24+
ai_timeout=120 # 2 minutes
2525
skip_keys = []
2626
custom_reasoning_model = false # when true, disables system messages and temperature controls for models that don't support chat-style inputs
2727
response_language="en-US" # Language locales code for PR responses in ISO 3166 and ISO 639 format (e.g., "en-US", "it-IT", "zh-CN", ...)
@@ -130,7 +130,7 @@ use_conversation_history=true
130130

131131
[pr_code_suggestions] # /improve #
132132
commitable_code_suggestions = false
133-
dual_publishing_score_threshold=-1 # -1 to disable, [0-10] to set the threshold (>=) for publishing a code suggestion both in a table and as commitable
133+
dual_publishing_score_threshold=-1 # -1 to disable, [0-10] to set the threshold (>=) for publishing a code suggestion both in a table and as committable
134134
focus_only_on_problems=true
135135
#
136136
extra_instructions = ""

pr_agent/settings/pr_help_docs_headings_prompts.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[pr_help_docs_headings_prompts]
33
system="""You are Doc-helper, a language model that ranks documentation files based on their relevance to user questions.
4-
You will receive a question, a repository url and file names along with optional groups of headings extracted from such files from that repository (either as markdown or as restructred text).
4+
You will receive a question, a repository url and file names along with optional groups of headings extracted from such files from that repository (either as markdown or as restructured text).
55
Your task is to rank file paths based on how likely they contain the answer to a user's question, using only the headings from each such file and the file name.
66
77
======

pr_agent/settings/pr_help_docs_prompts.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[pr_help_docs_prompts]
22
system="""You are Doc-helper, a language model designed to answer questions about a documentation website for a given repository.
3-
You will receive a question, a repository url and the full documentation content for that repository (either as markdown or as restructred text).
3+
You will receive a question, a repository url and the full documentation content for that repository (either as markdown or as restructured text).
44
Your goal is to provide the best answer to the question using the documentation provided.
55
66
Additional instructions:

pr_agent/settings/pr_help_prompts.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[pr_help_prompts]
2-
system="""You are Doc-helper, a language models designed to answer questions about a documentation website for an open-soure project called "PR-Agent" (recently renamed to "Qodo Merge").
2+
system="""You are Doc-helper, a language model designed to answer questions about a documentation website for an open-source project called "PR-Agent" (recently renamed to "Qodo Merge").
33
You will receive a question, and the full documentation website content.
44
Your goal is to provide the best answer to the question using the documentation provided.
55

0 commit comments

Comments
 (0)