-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
35 lines (35 loc) · 947 Bytes
/
action.yml
File metadata and controls
35 lines (35 loc) · 947 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
name: 'Roast My Code'
description: 'Brutally honest, AI-powered code quality governance.'
author: 'Rohan'
inputs:
path:
description: 'Path to the directory to roast'
required: false
default: '.'
fail_under:
description: 'Exit with error if the roast score is below this value'
required: false
default: '0'
github_token:
description: 'GitHub token for private repository access'
required: false
default: ${{ github.token }}
runs:
using: 'composite'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install roast-my-code
shell: bash
run: pip install .
- name: Run Roast
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
run: |
roast ${{ inputs.path }} --no-llm --fail-under ${{ inputs.fail_under }} --json-output roast-report.json
branding:
icon: 'zap'
color: 'red'