Shared GitHub Actions workflows for the OpenSwiftUI Project organization.
Workflow that enables Claude Code to interact with pull requests and issues when triggered.
Automated issue triage workflow that uses Claude to analyze and label new issues.
Automated PR triage workflow that uses Claude to analyze and label new pull requests.
These workflows are designed to be used as reusable workflows across all repositories in the OpenSwiftUIProject organization.
Create .github/workflows/claude.yml in your repository:
name: Claude Codeon:
issue_comment:
types: [created]pull_request_review_comment:
types: [created]issues:
types: [opened, assigned]pull_request_review:
types: [submitted]permissions:
contents: readpull-requests: readissues: readid-token: writeactions: readjobs:
claude:
uses: OpenSwiftUIProject/github-workflows/.github/workflows/claude.yml@mainsecrets: inheritCreate .github/workflows/issue-triage.yml in your repository:
name: Issue Triageon:
issues:
types: [opened]permissions:
contents: readissues: writejobs:
triage-issue:
uses: OpenSwiftUIProject/github-workflows/.github/workflows/issue-triage.yml@mainsecrets: inheritCreate .github/workflows/pr-triage.yml in your repository:
name: PR Triageon:
pull_request_target:
types: [opened]permissions:
contents: readpull-requests: writejobs:
triage-pr:
uses: OpenSwiftUIProject/github-workflows/.github/workflows/pr-triage.yml@mainsecrets: inheritNote: Using pull_request_target ensures the workflow has write permissions to add labels to PRs from forks.
The following secrets are required:
CLAUDE_CODE_OAUTH_TOKEN: OAuth token for Claude Code functionality- Already configured at the organization level for all OpenSwiftUI Project repositories
- No per-repository configuration needed
- To obtain a new token (for org admins), run
claude setup-tokenin your terminal
GITHUB_TOKEN: Automatically provided by GitHub Actions