-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 906 Bytes
/
pr-assistant.yml
File metadata and controls
37 lines (30 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: PR Assistant (The Janitor)
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
pull-requests: write
jobs:
auto-fix:
runs-on: ubuntu-latest
if: false # github.actor != 'github-actions[bot]'
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14.3"
- name: Install Ruff
run: pip install ruff
- name: Run Ruff Fix
run: ruff check --fix src/
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "style: auto-fix linting issues"
branch: ${{ github.head_ref }}
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com