forked from lobehub/lobehub
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.33 KB
/
claude-dedupe-issues.yml
File metadata and controls
42 lines (38 loc) · 1.33 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
name: Claude Issue Dedupe
description: Automatically dedupe GitHub issues using Claude Code
on:
issues:
types: [opened]
workflow_dispatch:
inputs:
issue_number:
description: 'Issue number to process for duplicate detection'
required: true
type: string
jobs:
claude-dedupe-issues:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Copy security prompt
run: |
mkdir -p /tmp/claude-prompts
cp .claude/prompts/security-rules.md /tmp/claude-prompts/
- name: Run Claude Code slash command
uses: anthropics/claude-code-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
allowed_non_write_users: "*"
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# Security: Using slash command which has built-in restrictions
# The /dedupe command only performs read operations and label additions
claude_args: |
--append-system-prompt "$(cat /tmp/claude-prompts/security-rules.md)"
prompt: '/dedupe ${{ github.repository }}/issues/${{ github.event.issue.number || inputs.issue_number }}'