Skip to content

Commit 9b05613

Browse files
committed
Update GitHub workflows to trigger on pull requests
Modified 'check-dead-links' and 'check-documentation-quality' workflows to run on pull request events instead of push and schedule. Updated 'claude.yml' to enable model, trigger phrase, and assignee trigger options by uncommenting and setting their values.
1 parent e470572 commit 9b05613

File tree

3 files changed

+7
-25
lines changed

3 files changed

+7
-25
lines changed

.github/workflows/check-dead-links.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Check Dead Links
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
schedule:
8-
# Run every 6 hours
9-
- cron: "0 */6 * * *"
4+
pull_request:
5+
types: [opened, ready_for_review]
106

117
permissions:
128
contents: write

.github/workflows/check-documentation-quality.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Check Documentation Quality
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
schedule:
8-
# Run every 6 hours
9-
- cron: "0 */6 * * *"
4+
pull_request:
5+
types: [opened, ready_for_review]
106

117
permissions:
128
contents: write

.github/workflows/claude.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,13 @@ jobs:
3636
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3737

3838
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
39-
# model: "claude-opus-4-20250514"
39+
model: "claude-opus-4-20250514"
4040

4141
# Optional: Customize the trigger phrase (default: @claude)
42-
# trigger_phrase: "/claude"
42+
trigger_phrase: "/claude"
4343

4444
# Optional: Trigger when specific user is assigned to an issue
45-
# assignee_trigger: "claude-bot"
45+
assignee_trigger: "claude-bot"
4646

4747
# Optional: Allow Claude to run specific commands
4848
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
49-
50-
# Optional: Add custom instructions for Claude to customize its behavior for your project
51-
# custom_instructions: |
52-
# Follow our coding standards
53-
# Ensure all new code has tests
54-
# Use TypeScript for new files
55-
56-
# Optional: Custom environment variables for Claude
57-
# claude_env: |
58-
# NODE_ENV: test

0 commit comments

Comments
 (0)