From 9b6ae02f668a38ba2cfdca1d4955c25b9ab3d83c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 19 Jan 2026 06:21:10 +0000 Subject: [PATCH 1/3] Initial plan From 3f10b90818112996762c9e17d224035859fa1f21 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 19 Jan 2026 06:25:29 +0000 Subject: [PATCH 2/3] Fix dependabot auto-approve workflow using hmarr/auto-approve-action@v4 Co-authored-by: cayossarian <23534755+cayossarian@users.noreply.github.com> --- .github/workflows/dependabot-auto-approve.yml | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) 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 }}" From ecbbc022f6c9eaa6f7446ca7dd9e02f5d76b4a80 Mon Sep 17 00:00:00 2001 From: cayossarian Date: Sun, 18 Jan 2026 22:40:56 -0800 Subject: [PATCH 3/3] Skip poetry-lock and poetry-check pre-commit hooks in CI CI modifies pyproject.toml to replace path dependencies with PyPI versions, which causes the poetry-lock hook to fail since the lock file differs. Since CI already runs poetry lock explicitly, these checks are redundant. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) 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