π OpenHands: AI-Driven Development
(fix) OpenDevin works on OpenDevin issues (#1149)
RaGe45c6f639f414
diff --git a/.github/workflows/dogfood.yml b/.github/workflows/dogfood.ymlindex df2a17b2ec..99a18ff502 100644--- a/.github/workflows/dogfood.yml+++ b/.github/workflows/dogfood.yml@@ -13,25 +13,18 @@ jobs:open-devin:if: github.event.label.name == 'dogfood-this'runs-on: ubuntu-latest- environment: OpenAI+ container:+ image: ghcr.io/opendevin/opendevin+ volumes:+ - /var/run/docker.sock:/var/run/docker.socksteps:+ - name: install git, github cli+ run: apt-get install -y git gh+- name: Checkout Repositoryuses: actions/checkout@v4- - name: Install poetry- run: pipx install poetry-- - name: Set up Python- uses: actions/setup-python@v5- with:- python-version: '3.12'- cache: 'poetry'-- - name: Install Dependencies- run: |- make build-- name: Write Task Fileenv:ISSUE_TITLE: ${{ github.event.issue.title }}@@ -48,12 +41,15 @@ jobs:ISSUE_TITLE: ${{ github.event.issue.title }}ISSUE_BODY: ${{ github.event.issue.body }}LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}+ SANDBOX_TYPE: execrun: |- poetry run python ./opendevin/main.py -d "./" -i 50 -f task.txt+ python ./opendevin/main.py -d "./" -i 50 -f task.txt -d $GITHUB_WORKSPACE+ rm task.txt- name: Setup Git, Create Branch, and Commit Changesrun: |# Setup Git configuration+ git config --global --add safe.directory $PWDgit config --global user.name 'OpenDevin'git config --global user.email '[email protected]'@@ -76,10 +72,6 @@ jobs:# Push changesgit push --set-upstream origin $BRANCH_NAME- - name: Install GitHub CLI- run: |- sudo apt-get install gh-- name: Fetch Default Branchenv:GH_TOKEN: ${{ github.token }}@@ -101,10 +93,10 @@ jobs:--head "${{ github.head_ref }}" \--base "${{ env.DEFAULT_BRANCH }}" \| grep -o 'https://github.com/[^ ]*')-+# Extract PR number from URLPR_NUMBER=$(echo "$PR_URL" | grep -o '[0-9]\+$')-+# Set environment varsecho "PR_URL=$PR_URL" >> $GITHUB_ENVecho "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV