mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 16:13:15 +00:00
fix: include resolved repo in Linear prompt to prevent repo ambiguity
This commit is contained in:
parent
16bcb0d94a
commit
5e4c6bb804
2 changed files with 2 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ Run shell commands in the sandbox. Pass `timeout=<seconds>` for long-running com
|
||||||
Returns the list of available GitHub repos. Pass `org="<org_name>"` to also search a specific GitHub org via the API. If unsure which repo to use, ask the user for confirmation.
|
Returns the list of available GitHub repos. Pass `org="<org_name>"` to also search a specific GitHub org via the API. If unsure which repo to use, ask the user for confirmation.
|
||||||
|
|
||||||
#### `get_branch_name`
|
#### `get_branch_name`
|
||||||
Returns the git branch name for this thread (`open-swe/{thread_id}`). Always call this to get your branch name — never hard-code it.
|
Returns the git branch name for this thread (`open-swe/<thread_id>`). Always call this to get your branch name — never hard-code it.
|
||||||
|
|
||||||
#### `fetch_url`
|
#### `fetch_url`
|
||||||
Fetches a URL and converts HTML to markdown. Use for web pages. Synthesize the content into a response — never dump raw markdown. Only use for URLs provided by the user or discovered during exploration.
|
Fetches a URL and converts HTML to markdown. Use for web pages. Synthesize the content into a response — never dump raw markdown. Only use for URLs provided by the user or discovered during exploration.
|
||||||
|
|
|
||||||
|
|
@ -613,6 +613,7 @@ async def process_linear_issue( # noqa: PLR0912, PLR0915
|
||||||
)
|
)
|
||||||
prompt = (
|
prompt = (
|
||||||
f"Please work on the following issue:\n\n"
|
f"Please work on the following issue:\n\n"
|
||||||
|
f"## Repository: {repo_config.get('owner')}/{repo_config.get('name')}\n\n"
|
||||||
f"## Title: {title}\n\n"
|
f"## Title: {title}\n\n"
|
||||||
f"{triggered_by_line}"
|
f"{triggered_by_line}"
|
||||||
f"## Linear Ticket: {identifier} - Ticket ID: {issue_id}\n\n"
|
f"## Linear Ticket: {identifier} - Ticket ID: {issue_id}\n\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue