SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Chore(deps): Bump actions/checkout from 5 to 6 (#1314)
dependabot[bot]1d3cfb798a2c
diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yamlindex ea282246..018783c3 100644--- a/.github/workflows/build-docs.yaml+++ b/.github/workflows/build-docs.yaml@@ -20,7 +20,7 @@ jobs:deploy:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v5+ - uses: actions/checkout@v6with:fetch-depth: 0- name: Configure Git Credentialsdiff --git a/.github/workflows/check-links-periodic.yaml b/.github/workflows/check-links-periodic.yamlindex d4c65854..fe7278f3 100644--- a/.github/workflows/check-links-periodic.yaml+++ b/.github/workflows/check-links-periodic.yaml@@ -13,7 +13,7 @@ jobs:markdown-link-check:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v5+ - uses: actions/checkout@v6- uses: tcort/github-action-markdown-link-check@v1with:use-quiet-mode: 'yes'diff --git a/.github/workflows/check-links-pr.yaml b/.github/workflows/check-links-pr.yamlindex d7c9d7d2..181de791 100644--- a/.github/workflows/check-links-pr.yaml+++ b/.github/workflows/check-links-pr.yaml@@ -4,7 +4,7 @@ jobs:markdown-link-check:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v5+ - uses: actions/checkout@v6- uses: tcort/github-action-markdown-link-check@v1with:use-quiet-mode: 'yes'diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yamlindex c29dbaa0..19fc54c2 100644--- a/.github/workflows/pytest.yaml+++ b/.github/workflows/pytest.yaml@@ -35,7 +35,7 @@ jobs:shell: bash -l {0}steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@v6- uses: actions/setup-python@v6with:python-version: "${{ matrix.python-version }}"diff --git a/sweagent/tools/parsing.py b/sweagent/tools/parsing.pyindex 51100b79..def52de0 100644--- a/sweagent/tools/parsing.py+++ b/sweagent/tools/parsing.py@@ -564,9 +564,9 @@ class BashCodeBlockParser(AbstractParseFunction, BaseModel):if not matches:msg = "No bash code blocks were detected in your output."raise FormatError(msg)- thouht = pattern.sub("<extracted_code_block>", model_response["message"])+ thought = pattern.sub("<extracted_code_block>", model_response["message"])action = "\n".join(matches)- return thouht, action+ return thought, actionclass SingleBashCodeBlockParser(AbstractParseFunction, BaseModel):@@ -599,9 +599,9 @@ class SingleBashCodeBlockParser(AbstractParseFunction, BaseModel):"You need to include EXACTLY ONE bash code block in your output.")raise FormatError(msg)- thouht = pattern.sub("<extracted_code_block>", model_response["message"])+ thought = pattern.sub("<extracted_code_block>", model_response["message"])action = "\n".join(matches)- return thouht, action+ return thought, actionParseFunction = (diff --git a/tests/test_commands/_interactive_dummy.py b/tests/test_commands/_interactive_dummy.pyindex 6eff5956..f2f12c80 100644--- a/tests/test_commands/_interactive_dummy.py+++ b/tests/test_commands/_interactive_dummy.py@@ -20,8 +20,8 @@ class InteractiveDummyCommand:def __call__(self):self.start()while True:- inpt = input(self.PROMPT)- cmd, _, args = inpt.partition(" ")+ input = input(self.PROMPT)+ cmd, _, args = input.partition(" ")if cmd == "stop":self.stop()break