Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/dependabot-auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Dependabot Auto-Approve

on:
pull_request:
pull_request_target:
types: [opened, synchronize, reopened]

permissions:
Expand All @@ -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 }}"