diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 899ee3d9..15a8a0ce 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -10,6 +10,10 @@ on: # - "src/**/*.js" # - "src/**/*.jsx" +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: claude-review: # Optional: Filter by PR author @@ -58,7 +62,9 @@ jobs: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins' - prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' + prompt: '/code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' + claude_args: | + --allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api:*),Bash(git log:*),Bash(git diff:*),Bash(git blame:*),Read,Glob,Grep" # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options diff --git a/Bitkit/ViewModels/WalletViewModel.swift b/Bitkit/ViewModels/WalletViewModel.swift index 1251f1f0..d1d35b9f 100644 --- a/Bitkit/ViewModels/WalletViewModel.swift +++ b/Bitkit/ViewModels/WalletViewModel.swift @@ -557,9 +557,8 @@ class WalletViewModel: ObservableObject { return fundableBalance } let feeRate = TransactionSpeed.normal.getFeeRate(from: feeRates) - let fee = try await lightningService.calculateTotalFee( + let fee = try await lightningService.estimateSendAllFee( address: onchainAddress, - amountSats: fundableBalance, satsPerVByte: feeRate ) return fundableBalance >= fee ? fundableBalance - fee : 0