Skip to content

Commit 6d9f263

Browse files
committed
OP#9478: Clean up linter issues
1 parent 8699d7c commit 6d9f263

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Claude Code Review
23

34
on:
@@ -10,6 +11,8 @@ on:
1011
# - "src/**/*.js"
1112
# - "src/**/*.jsx"
1213

14+
permissions: {}
15+
1316
jobs:
1417
claude-review:
1518
# Optional: Filter by PR author
@@ -38,7 +41,9 @@ jobs:
3841
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3942
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
4043
plugins: 'code-review@claude-code-plugins'
41-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}. See CONTRIBUTING.md and AGENTS.md for code style and review rules.'
44+
prompt: >-
45+
/code-review:code-review ${{ github.repository }}/pull/${{
46+
github.event.pull_request.number }}. See CONTRIBUTING.md
47+
and AGENTS.md for code style and review rules.
4248
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4349
# or https://code.claude.com/docs/en/cli-reference for available options
44-

.github/workflows/claude.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Claude Code
23

34
on:
@@ -10,20 +11,23 @@ on:
1011
pull_request_review:
1112
types: [submitted]
1213

14+
permissions: {}
15+
1316
jobs:
1417
claude:
1518
if: |
1619
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
1720
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
1821
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
22+
(github.event_name == 'issues' &&
23+
(contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2024
runs-on: ubuntu-latest
2125
permissions:
2226
contents: read
2327
pull-requests: read
2428
issues: read
2529
id-token: write
26-
actions: read # Required for Claude to read CI results on PRs
30+
actions: read # Required for Claude to read CI results on PRs
2731
steps:
2832
- name: Checkout repository
2933
uses: actions/checkout@v4
@@ -40,11 +44,11 @@ jobs:
4044
additional_permissions: |
4145
actions: read
4246
43-
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
47+
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will
48+
# perform the instructions specified in the comment that tagged it.
4449
# prompt: 'Update the pull request description to include a summary of changes.'
4550

4651
# Optional: Add claude_args to customize behavior and configuration
4752
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4853
# or https://code.claude.com/docs/en/cli-reference for available options
4954
# claude_args: '--allowed-tools Bash(gh pr:*)'
50-

0 commit comments

Comments
 (0)