Spaces:
Sleeping
Sleeping
Download .github/workflows/pre-commit-pr.yaml from gvatsal60/github-test: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/gvatsal60/github-test/resolve/ebed69fc42054fcc7622c19f27e6737449727cc5/.github/workflows/pre-commit-pr.yaml
- Command line
-
hf download hf://spaces/gvatsal60/github-test@ebed69fc42054fcc7622c19f27e6737449727cc5/.github/workflows/pre-commit-pr.yaml
-
curl -L -o pre-commit-pr.yaml https://huggingface.co/spaces/gvatsal60/github-test/resolve/ebed69fc42054fcc7622c19f27e6737449727cc5/.github/workflows/pre-commit-pr.yaml
549 Bytes
| name: Pre-commit Auto Approve & Merge | |
| on: pull_request | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.user.login == 'pre-commit-ci[bot]' && github.event.pull_request.user.type == 'Bot' | |
| steps: | |
| - name: Approve & Auto-Merge PR | |
| run: | | |
| gh pr review --approve "${PR_URL}" | |
| gh pr merge --auto --squash "${PR_URL}" | |
| env: | |
| PR_URL: ${{github.event.pull_request.html_url}} | |
| GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |