Skip to content

Plug request_votes storage leak #195

Plug request_votes storage leak

Plug request_votes storage leak #195

Workflow file for this run

name: Lint
on:
pull_request:
branches: [main, test]
jobs:
# if PR is same repo, auto commit lint fixes
pre-commit:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- run: uv sync
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit (auto-fix)
run: uv run pre-commit run --all-files
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: auto-fix pre-commit hooks"
- name: Verify pre-commit passes
run: uv run pre-commit run --all-files
# if PR is from a fork, fail lint, no autocommit
pre-commit-fork:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- run: uv sync
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- run: uv run pre-commit run --all-files