Skip to content

Commit 9ecd58b

Browse files
committed
Merge branch 'main' into fix_codegate_cli_context
2 parents e29535b + ee9a590 commit 9ecd58b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/image-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
2727
- name: Download artifact
2828
id: download-artifact
29-
uses: dawidd6/action-download-artifact@80620a5d27ce0ae443b965134db88467fc607b43 # v7
29+
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
3030
with:
3131
github_token: ${{ github.token }}
3232
workflow: ".github/workflows/import_packages.yml"

.github/workflows/image-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
type=semver,pattern=v{{major}}.{{minor}}
5858
- name: Download artifact
5959
id: download-artifact
60-
uses: dawidd6/action-download-artifact@80620a5d27ce0ae443b965134db88467fc607b43 # v7
60+
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
6161
with:
6262
github_token: ${{ github.token }}
6363
workflow: ".github/workflows/import_packages.yml"

.github/workflows/import_packages.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3434
- name: Download json data
3535
id: download-json-data
36-
uses: dawidd6/action-download-artifact@80620a5d27ce0ae443b965134db88467fc607b43 # v7
36+
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
3737
with:
3838
repo: stacklok/codegate-data
3939
workflow: ".github/workflows/generate-artifact.yml"
@@ -47,7 +47,7 @@ jobs:
4747
- name: Download artifact
4848
if: ${{ github.event.inputs.enable_artifact_download == 'true' }}
4949
id: download-artifact
50-
uses: dawidd6/action-download-artifact@80620a5d27ce0ae443b965134db88467fc607b43 # v7
50+
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
5151
with:
5252
github_token: ${{ github.token }}
5353
workflow: ".github/workflows/import_packages.yml"

src/codegate/pipeline/cli/cli.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ async def process(
7979
last_user_message_str, _ = last_user_message
8080
last_user_message_str = last_user_message_str.strip()
8181
is_cline_client = any(
82-
"Cline" in str(message.get("content", "")) for message in request.get("messages",
83-
[])
82+
"Cline" in str(message.get("content", ""))
83+
for message in request.get("messages", [])
8484
)
8585
if not is_cline_client:
8686
# Check if "codegate" is the first word in the message
@@ -90,7 +90,7 @@ async def process(
9090
xml_start = re.search(r"<[^>]+>", last_user_message_str)
9191
if xml_start:
9292
# Start processing only from the first XML tag
93-
relevant_message = last_user_message_str[xml_start.start():]
93+
relevant_message = last_user_message_str[xml_start.start() :]
9494
# Remove all XML tags and trim whitespace
9595
stripped_message = re.sub(r"<[^>]+>", "", relevant_message).strip()
9696
# Check if "codegate" is the first word

0 commit comments

Comments
 (0)