-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathaction.yml
More file actions
58 lines (56 loc) · 1.61 KB
/
action.yml
File metadata and controls
58 lines (56 loc) · 1.61 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: 'AI Issue and Comment Moderator'
description:
'Scan new issues and comments with GitHub Models AI prompts; label or hide
spam automatically.'
author: 'GitHub'
branding:
icon: 'shield'
color: 'purple'
inputs:
token:
description:
'GitHub token with `issues`, `pull-requests`, and `models: read`
permissions'
required: false
default: ${{ github.token }}
spam-label:
description: 'Label to add when generic spam is detected'
required: false
default: 'spam'
ai-label:
description: 'Label to add when AI-generated content is detected'
required: false
default: 'ai-generated'
minimize-detected-comments:
description: 'Whether to minimize comments detected as spam'
required: false
default: 'true'
dry-run:
description:
'If true, only evaluate without adding labels or minimizing comments'
required: false
default: 'false'
custom-prompt-path:
description:
'Path to a custom YAML prompt file in your repository (relative to
repository root)'
required: false
enable-spam-detection:
description: 'Enable built-in spam detection prompt'
required: false
default: 'true'
enable-link-spam-detection:
description: 'Enable built-in link spam detection prompt'
required: false
default: 'true'
enable-ai-detection:
description: 'Enable built-in AI-generated content detection prompt'
required: false
default: 'true'
endpoint:
description: The endpoint to use for inference
required: false
default: 'https://models.github.ai/inference'
runs:
using: 'node16'
main: 'dist/index.js'