diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index faca0eb..bc4766d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,8 @@ jobs: - name: Run pre-commit hooks (for extra validation) run: poetry run pre-commit run --all-files --show-diff-on-failure + env: + SKIP: poetry-lock,poetry-check - name: Run tests with coverage run: poetry run pytest tests/ --cov=custom_components/span_panel --cov-report=xml --cov-report=term-missing diff --git a/.github/workflows/dependabot-auto-approve.yml b/.github/workflows/dependabot-auto-approve.yml index 346ae4a..d3fd1ac 100644 --- a/.github/workflows/dependabot-auto-approve.yml +++ b/.github/workflows/dependabot-auto-approve.yml @@ -1,7 +1,7 @@ name: Dependabot Auto-Approve on: - pull_request: + pull_request_target: types: [opened, synchronize, reopened] permissions: @@ -21,18 +21,12 @@ jobs: - name: Auto-approve patch and minor updates if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' }} - run: | - echo "Auto-approving ${{ steps.metadata.outputs.dependency-names }}" - gh pr review --approve "$PR_URL" - env: - PR_URL: ${{ github.event.pull_request.html_url }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: hmarr/auto-approve-action@v4 + with: + review-message: "Auto-approved ${{ steps.metadata.outputs.update-type }} update for ${{ steps.metadata.outputs.dependency-names }}" - name: Auto-approve GitHub Actions updates if: ${{ steps.metadata.outputs.package-ecosystem == 'github_actions' }} - run: | - echo "Auto-approving GitHub Actions update for ${{ steps.metadata.outputs.dependency-names }}" - gh pr review --approve "$PR_URL" - env: - PR_URL: ${{ github.event.pull_request.html_url }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: hmarr/auto-approve-action@v4 + with: + review-message: "Auto-approved GitHub Actions update for ${{ steps.metadata.outputs.dependency-names }}"