-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge main: Resolve conflicts while preserving analytics trac…
- Loading branch information
Showing
105 changed files
with
2,281 additions
and
4,465 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
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 was deleted.
Oops, something went wrong.
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,10 +5,9 @@ on: | |
types: [labeled] | ||
|
||
jobs: | ||
# Frontend lint fixes | ||
lint-fix-frontend: | ||
lint-fix: | ||
if: github.event.label.name == 'lint-fix' | ||
name: Fix frontend linting issues | ||
name: Fix linting issues | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -21,6 +20,7 @@ jobs: | |
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Frontend lint fixes | ||
- name: Install Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -34,36 +34,7 @@ jobs: | |
cd frontend | ||
npm run lint:fix | ||
# 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 }} | ||
|
||
# Python lint fixes | ||
- name: Set up python | ||
uses: actions/setup-python@v5 | ||
with: | ||
|
@@ -87,5 +58,5 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git config --local user.name "OpenHands Bot" | ||
git add -A | ||
git commit -m "🤖 Auto-fix Python linting issues" | ||
git commit -m "🤖 Auto-fix 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.