Skip to content

Commit cd5af51

Browse files
committed
Comment out direct triggers and update README
- Commented out direct event triggers in reusable workflows since they're only meant to be called from other repositories - Updated README with detailed usage examples for both workflows - Corrected secret name from ANTHROPIC_API_KEY to CLAUDE_CODE_OAUTH_TOKEN - Added instructions on where to obtain the OAuth token
1 parent ea8e613 commit cd5af51

File tree

3 files changed

+49
-13
lines changed

3 files changed

+49
-13
lines changed

.github/workflows/claude.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ on:
55
secrets:
66
CLAUDE_CODE_OAUTH_TOKEN:
77
required: true
8-
issue_comment:
9-
types: [created]
10-
pull_request_review_comment:
11-
types: [created]
12-
issues:
13-
types: [opened, assigned]
14-
pull_request_review:
15-
types: [submitted]
8+
# The following triggers are commented out since this is a reusable workflow.
9+
# Uncomment them if you want to use this workflow directly in this repository.
10+
# issue_comment:
11+
# types: [created]
12+
# pull_request_review_comment:
13+
# types: [created]
14+
# issues:
15+
# types: [opened, assigned]
16+
# pull_request_review:
17+
# types: [submitted]
1618

1719
jobs:
1820
claude:

.github/workflows/issue-triage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ on:
66
required: true
77
GITHUB_TOKEN:
88
required: true
9-
issues:
10-
types: [opened]
9+
# The following trigger is commented out since this is a reusable workflow.
10+
# Uncomment it if you want to use this workflow directly in this repository.
11+
# issues:
12+
# types: [opened]
1113

1214
jobs:
1315
triage-issue:

README.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,48 @@ Automated issue triage workflow that uses Claude to analyze and label new issues
1414

1515
These workflows are designed to be used as reusable workflows across all repositories in the OpenSwiftUIProject organization.
1616

17-
To use these workflows in your repository, reference them in your workflow files:
17+
### Using claude.yml
18+
19+
Create `.github/workflows/claude.yml` in your repository:
1820

1921
```yaml
22+
name: Claude Code
23+
24+
on:
25+
issue_comment:
26+
types: [created]
27+
pull_request_review_comment:
28+
types: [created]
29+
issues:
30+
types: [opened, assigned]
31+
pull_request_review:
32+
types: [submitted]
33+
2034
jobs:
21-
call-shared-workflow:
35+
claude:
2236
uses: OpenSwiftUIProject/github-workflows/.github/workflows/claude.yml@main
2337
secrets: inherit
2438
```
2539
40+
### Using issue-triage.yml
41+
42+
Create `.github/workflows/issue-triage.yml` in your repository:
43+
44+
```yaml
45+
name: Issue Triage
46+
47+
on:
48+
issues:
49+
types: [opened]
50+
51+
jobs:
52+
triage-issue:
53+
uses: OpenSwiftUIProject/github-workflows/.github/workflows/issue-triage.yml@main
54+
secrets: inherit
55+
```
56+
2657
## Requirements
2758

2859
The following organization or repository secrets must be configured:
29-
- `ANTHROPIC_API_KEY`: API key for Claude Code functionality
60+
- `CLAUDE_CODE_OAUTH_TOKEN`: OAuth token for Claude Code functionality (get it from [Claude Code OAuth](https://console.anthropic.com/settings/oauth))
61+
- `GITHUB_TOKEN`: Automatically provided by GitHub Actions

0 commit comments

Comments
 (0)