Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: lint-fix.yml github action doesn't work on a branch not from this repo #5080

Closed
1 task done
neubig opened this issue Nov 16, 2024 · 2 comments · Fixed by #5081
Closed
1 task done

[Bug]: lint-fix.yml github action doesn't work on a branch not from this repo #5080

neubig opened this issue Nov 16, 2024 · 2 comments · Fixed by #5081
Labels
bug Something isn't working fix-me Attempt to fix this issue with OpenHands

Comments

@neubig
Copy link
Contributor

neubig commented Nov 16, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

When running the lint-fix.yml github action on a PR from outside of this repo, we get an error as follows. We should fix it!

Run actions/checkout@v4
  with:
    ref: checkout-a-non-main-branch-option
    fetch-depth: 0
    token: ***
    repository: All-Hands-AI/OpenHands
    ssh-strict: true
    ssh-user: git
    persist-credentials: true
    clean: true
    sparse-checkout-cone-mode: true
    fetch-tags: false
    show-progress: true
    lfs: false
    submodules: false
    set-safe-directory: true
Syncing repository: All-Hands-AI/OpenHands
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/e58b573[2](https://github.com/All-Hands-AI/OpenHands/actions/runs/11867107011/job/33074752266?pr=5075#step:2:2)-7167-401[3](https://github.com/All-Hands-AI/OpenHands/actions/runs/11867107011/job/33074752266?pr=5075#step:2:3)-863d-7a0be36b34ff' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/OpenHands/OpenHands
Deleting the contents of '/home/runner/work/OpenHands/OpenHands'
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
Determining the checkout info
  /usr/bin/git branch --list --remote origin/checkout-a-non-main-branch-option
  /usr/bin/git tag --list checkout-a-non-main-branch-option
  Error: A branch or tag with the name 'checkout-a-non-main-branch-option' could not be found

OpenHands Installation

Docker command in README

OpenHands Version

No response

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

@neubig neubig added bug Something isn't working fix-me Attempt to fix this issue with OpenHands labels Nov 16, 2024
Copy link
Contributor

OpenHands started fixing the issue! You can monitor the progress here.

Copy link
Contributor

A potential fix has been generated and a draft PR #5081 has been created. Please review the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix-me Attempt to fix this issue with OpenHands
Projects
None yet
1 participant