-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
51 lines (47 loc) · 1.48 KB
/
action.yml
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
name: "AI Labeler"
description: "Automatically label issues and PRs with AI"
author: "Jeremiah Lowin"
inputs:
controlflow-llm-model:
description: "ControlFlow model to use for AI labeling. Should be openai/<model-name> or anthropic/<model-name>, with the appropriate API key set."
required: true
default: "openai/gpt-4o-mini"
openai-api-key:
description: "OpenAI API key for AI processing"
required: false
anthropic-api-key:
description: "Anthropic API key for AI processing"
required: false
github-token:
description: "GitHub token with repository access"
required: true
default: ${{ github.token}}
config-path:
description: "Path to AI Labeler configuration file"
required: false
default: ".github/ai-labeler.yml"
dry-run:
description: 'If "true", will only suggest labels without applying them'
required: false
default: "false"
event-number:
description: "PR or Issue number"
required: false
include-repo-labels:
description: "If true, use all repository labels in addition to config-defined labels"
required: false
default: "true"
outputs:
labels:
description: "JSON array of labels that were applied"
runs:
using: "docker"
image: "Dockerfile"
env:
OPENAI_API_KEY: ${{ inputs.openai-api-key }}
ANTHROPIC_API_KEY: ${{ inputs.anthropic-api-key }}
CONTROLFLOW_LLM_MODEL: ${{ inputs.controlflow-llm-model }}
GITHUB_TOKEN: ${{ inputs.github-token }}
branding:
icon: tag
color: black