File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : AI Comment Handler
2+
3+
4+ on :
5+ pull_request :
6+ types : [opened] # [opened , labeled]
7+ issue_comment :
8+ types : [created]
9+ issues :
10+ types : [opened] # [opened, labeled]
11+
12+ # Define permissions needed for the workflow
13+ permissions :
14+ issues : write
15+ pull-requests : write
16+ contents : read
17+
18+ jobs :
19+ trigger_probe_chat :
20+ # Uncomment if you want to run on on specific lables, in this example `probe`
21+ # if: |
22+ # (github.event_name == 'pull_request' && github.event.action == 'opened') ||
23+ # (github.event_name == 'issues' && github.event.action == 'opened') ||
24+ # (github.event_name == 'issue_comment' && github.event.action == 'created') ||
25+ # ((github.event_name == 'pull_request' || github.event_name == 'issues') &&
26+ # github.event.action == 'labeled' && github.event.label.name == 'probe')
27+ # Use the reusable workflow from your repository (replace <your-org/repo> and <ref>)
28+ uses : buger/probe/.github/workflows/probe.yml@main
29+ # Pass required inputs
30+ with :
31+ command_prefix : " /probe" # Or '/ai', '/ask', etc.
32+ # Optionally override the default npx command if the secret isn't set
33+ # default_probe_chat_command: 'node path/to/custom/script.js'
34+ # Pass ALL secrets from this repository to the reusable workflow
35+ # This includes GITHUB_TOKEN, PROBE_CHAT_COMMAND (if set), ANTHROPIC_API_KEY, etc.
36+ secrets :
37+ ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
38+ ANTHROPIC_API_URL : ${{ secrets.ANTHROPIC_API_URL }}
You can’t perform that action at this time.
0 commit comments