Skip to content

Commit 418959d

Browse files
Merge pull request #283 from halomod/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 478468e + 8702990 commit 418959d

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: pre-commit auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
auto-merge:
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.title == '[pre-commit.ci] pre-commit autoupdate'
12+
steps:
13+
- name: Approve the PR
14+
run: gh pr review --approve "$PR_URL"
15+
env:
16+
PR_URL: ${{github.event.pull_request.html_url}}
17+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
18+
- name: Enable auto-merge
19+
run: gh pr merge --auto --merge "$PR_URL"
20+
env:
21+
PR_URL: ${{github.event.pull_request.html_url}}
22+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727

2828
- repo: https://github.com/astral-sh/ruff-pre-commit
2929
# Ruff version.
30-
rev: v0.15.8
30+
rev: v0.15.9
3131
hooks:
3232
# Run the linter.
3333
- id: ruff

0 commit comments

Comments
 (0)