Skip to content

Commit

Permalink
Merge pull request #60 from universal-ember/auto-lintfix
Browse files Browse the repository at this point in the history
Auto lintfix
  • Loading branch information
NullVoxPopuli authored Jan 16, 2024
2 parents 4a81db9 + 5f1d7f5 commit e46135b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
- uses: wyvox/action-setup-pnpm@v3
- run: pnpm build
- run: pnpm i -f # re sync injected deps
- run: pnpm lint
- name: "Verify that no manually needed fixes / violations are present"
run: pnpm lint

test:
name: "Tests"
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pr-fixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Fix PR

on:
pull_request:

jobs:
lint-fix:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PR_FIXER }}
ref: ${{ github.head_ref }}
- uses: wyvox/action-setup-pnpm@v3
- run: pnpm build
- run: pnpm i -f # re sync injected deps

###################################################
# Commit easily fixable things back to the branch
###################################################
- run: pnpm lint:fix
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Automatically run 'pnpm lint:fix'"
branch: ${{ github.head_ref }}

0 comments on commit e46135b

Please sign in to comment.