File tree Expand file tree Collapse file tree 3 files changed +49
-13
lines changed
Expand file tree Collapse file tree 3 files changed +49
-13
lines changed Original file line number Diff line number Diff line change 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
1719jobs :
1820 claude :
Original file line number Diff line number Diff line change 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
1214jobs :
1315 triage-issue :
Original file line number Diff line number Diff line change @@ -14,16 +14,48 @@ Automated issue triage workflow that uses Claude to analyze and label new issues
1414
1515These 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+
2034jobs :
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
2859The 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
You can’t perform that action at this time.
0 commit comments