-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (45 loc) · 1.84 KB
/
example.yml
File metadata and controls
53 lines (45 loc) · 1.84 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
---
name: Improve Issue Titles Example
on:
# Run daily at midnight
# schedule:
# - cron: '0 0 * * *'
# Allow manual trigger
workflow_dispatch:
# Run when issues are created
issues:
types: [ opened ]
jobs:
improve-titles:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Improve Issue Titles
uses: horw/issue-title-ai@v0.1.8b
with:
github-token: ${{ github.token }}
# gemini-api-key: ${{ secrets.GEMINI_API_KEY }}
deepseek-api-key: ${{ secrets.DEEPSEEK_API_KEY }}
days-to-scan: 3
auto-update: false
skip-label: ai-title
prompt: |
You are a GitHub Actions plugin designed to automatically improve GitHub issue titles using a large language model (LLM). You're also an expert in crafting precise, helpful, and engaging issue titles.
Your job is to analyze the provided GitHub issue and determine if the title is already effective. If it's vague or unhelpful, you should rewrite it to be:
- Clear, concise, and specific
- Action-oriented when relevant
- Focused on the affected feature, component, or behavior
- Ideally under 80 characters
- Free from generic terms like "bug" or "problem" without context
You must **not** change the intent or meaning of the issue.
### Input:
- **Original Issue Title**: `{original_title}`
- **Issue Description**:
```
{issue_body}
```
### Output:
- If the original title is already well-written, return it **unchanged**.
- Otherwise, return an improved title **only**—with no extra explanation or commentary.
Your output should **only be the final title**, nothing else.