Skip to content

Commit 0a8b2e6

Browse files
authored
Merge branch 'master' into feat/source-linter
2 parents 78124f3 + 1fcb45a commit 0a8b2e6

File tree

6 files changed

+83
-4
lines changed

6 files changed

+83
-4
lines changed

.claude/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"allowedTools": ["Bash(*)"]
3+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Claude Code Review
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, ready_for_review, reopened]
6+
7+
jobs:
8+
claude-review:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
issues: read
14+
actions: read
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout PR head (fork)
19+
uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
fetch-depth: 1
23+
24+
- name: Run Claude Code Review
25+
id: claude-review
26+
uses: anthropics/claude-code-action@v1
27+
with:
28+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
29+
github_token: ${{ github.token }}
30+
31+
show_full_output: true
32+
33+
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
34+
plugins: 'code-review@claude-code-plugins'
35+
36+
claude_args: |
37+
--allowedTools "Bash(*)"
38+
39+
prompt: |
40+
/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}
41+
Post the results as one top-level PR comment titled "Claude Code Review".
42+
43+
additional_permissions: |
44+
actions: read

.github/workflows/claude.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Claude Code
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
claude:
15+
if: |
16+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
17+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
18+
(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')))
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
pull-requests: write
24+
issues: write
25+
id-token: write
26+
actions: read
27+
28+
steps:
29+
- name: Run Claude Code
30+
id: claude
31+
uses: anthropics/claude-code-action@v1
32+
with:
33+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
34+
additional_permissions: |
35+
actions: read

.lychee.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ retry_wait_time = 4
1212

1313
# Comma-separated list of accepted status codes for valid links.
1414
# accept = ["200", "206", "403", "429"]
15-
accept = ["200", "429"]
15+
accept = ["200", "429", "502"]
1616

1717
verbose = "error"
1818

src/common/m_variables_conversion.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,6 @@ contains
11031103
nbub = 3._wp*q_prim_vf(alf_idx)%sf(j, k, l)/(4._wp*pi*R3tmp)
11041104
end if
11051105

1106-
if (j == 0 .and. k == 0 .and. l == 0) print *, 'In convert, nbub:', nbub
1107-
11081106
do i = bub_idx%beg, bub_idx%end
11091107
q_cons_vf(i)%sf(j, k, l) = q_prim_vf(i)%sf(j, k, l)*nbub
11101108
end do

src/post_process/m_data_input.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ impure subroutine s_read_serial_data_files(t_step)
312312
STATUS='old', ACTION='read')
313313
read (1) q_cons_vf(i)%sf(0:m, 0:n, 0:p)
314314
close (1)
315-
print *, q_cons_vf(i)%sf(:, 0, 0)
316315
else
317316
call s_mpi_abort('File q_cons_vf'//trim(file_num)// &
318317
'.dat is missing in '//trim(t_step_dir)// &

0 commit comments

Comments
 (0)