-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into openhands-fix-issue-4484
- Loading branch information
Showing
10 changed files
with
478 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,10 @@ on: | |
types: [labeled] | ||
|
||
jobs: | ||
lint-fix: | ||
# Frontend lint fixes | ||
lint-fix-frontend: | ||
if: github.event.label.name == 'lint-fix' | ||
name: Fix linting issues | ||
name: Fix frontend linting issues | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -20,7 +21,6 @@ jobs: | |
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Frontend lint fixes | ||
- name: Install Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -34,7 +34,36 @@ jobs: | |
cd frontend | ||
npm run lint:fix | ||
# Python lint fixes | ||
# Commit and push changes if any | ||
- name: Check for changes | ||
id: git-check | ||
run: | | ||
git diff --quiet || echo "changes=true" >> $GITHUB_OUTPUT | ||
- name: Commit and push if there are changes | ||
if: steps.git-check.outputs.changes == 'true' | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "OpenHands Bot" | ||
git add -A | ||
git commit -m "🤖 Auto-fix frontend linting issues" | ||
git push | ||
# Python lint fixes | ||
lint-fix-python: | ||
if: github.event.label.name == 'lint-fix' | ||
name: Fix Python linting issues | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up python | ||
uses: actions/setup-python@v5 | ||
with: | ||
|
@@ -58,5 +87,5 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git config --local user.name "OpenHands Bot" | ||
git add -A | ||
git commit -m "🤖 Auto-fix linting issues" | ||
git commit -m "🤖 Auto-fix Python linting issues" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.