diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 082f7d3..0a6b237 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -34,7 +34,7 @@ jobs: RSPM: ${{ matrix.config.rspm }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - uses: r-lib/actions/setup-r@v2 with: @@ -82,7 +82,7 @@ jobs: - name: Upload check results if: failure() - uses: actions/upload-artifact@main + uses: actions/upload-artifact@v4 with: name: ${{ runner.os }}-r${{ matrix.config.r }}-results path: check diff --git a/.github/workflows/claude-code-review.yaml b/.github/workflows/claude-code-review.yaml new file mode 100644 index 0000000..9d02933 --- /dev/null +++ b/.github/workflows/claude-code-review.yaml @@ -0,0 +1,40 @@ +name: Claude Code Review + +on: + pull_request: + types: [opened, synchronize] + +jobs: + claude-review: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + issues: read + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 1 + + - name: Run Claude Code Review + id: claude-review + uses: anthropics/claude-code-action@v1 + with: + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + prompt: | + REPO: ${{ github.repository }} + PR NUMBER: ${{ github.event.pull_request.number }} + + Please review this pull request and think hard about correctness, + edge cases, and consistency with the rest of the codebase. Use the + repository's CLAUDE.md for guidance if available. + Focus on: + - Code quality and R package best practices + - Potential bugs or logic issues + - Test coverage + - Documentation (roxygen2) completeness + - Consistency with the existing codebase + claude_args: '--model claude-opus-4-7 --allowed-tools "mcp__github_inline_comment__create_inline_comment,Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"' diff --git a/.github/workflows/claude.yaml b/.github/workflows/claude.yaml new file mode 100644 index 0000000..2da55d5 --- /dev/null +++ b/.github/workflows/claude.yaml @@ -0,0 +1,38 @@ +name: Claude Code + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + issues: + types: [opened, assigned] + pull_request_review: + types: [submitted] + +jobs: + claude: + if: | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || + (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + issues: read + id-token: write + actions: read + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 1 + + - name: Run Claude Code + id: claude + uses: anthropics/claude-code-action@v1 + with: + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + claude_args: '--model claude-opus-4-7' diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index fee112e..f3f4307 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -14,7 +14,7 @@ jobs: CURL_SSL_BACKEND: "openssl" GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - uses: r-lib/actions/setup-r@v2 with: diff --git a/.github/workflows/pr-commands.yaml b/.github/workflows/pr-commands.yaml index 0d3cb71..02066fc 100644 --- a/.github/workflows/pr-commands.yaml +++ b/.github/workflows/pr-commands.yaml @@ -10,11 +10,11 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/pr-fetch@master + - uses: actions/checkout@v5 + - uses: r-lib/actions/pr-fetch@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: r-lib/actions/setup-r@master + - uses: r-lib/actions/setup-r@v2 - name: Install dependencies run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)' - name: Document @@ -23,7 +23,7 @@ jobs: run: | git add man/\* NAMESPACE git commit -m 'Document' - - uses: r-lib/actions/pr-push@master + - uses: r-lib/actions/pr-push@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} style: @@ -33,11 +33,11 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/pr-fetch@master + - uses: actions/checkout@v5 + - uses: r-lib/actions/pr-fetch@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: r-lib/actions/setup-r@master + - uses: r-lib/actions/setup-r@v2 - name: Install dependencies run: Rscript -e 'install.packages("styler")' - name: Style @@ -46,6 +46,6 @@ jobs: run: | git add \*.R git commit -m 'Style' - - uses: r-lib/actions/pr-push@master + - uses: r-lib/actions/pr-push@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index d3eaeac..8a1bcd5 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -16,7 +16,7 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - uses: r-lib/actions/setup-r@v2 diff --git a/inst/extdata/config/network_complete_mean-start-conc/flows_in_out.csv b/inst/extdata/config/network_complete_mean-start-conc/flows_in_out.csv index f62660a..bcb10fd 100644 --- a/inst/extdata/config/network_complete_mean-start-conc/flows_in_out.csv +++ b/inst/extdata/config/network_complete_mean-start-conc/flows_in_out.csv @@ -96,7 +96,7 @@ H08;WW_BEE_lind;Wasserwerk Beelitzhof Galerie Lindwerder;;;;;0,48;;out;abstracti H08;WW_BEE_grfe;Wasserwerk Beelitzhof Galerie Großes Fenster;;;;;0,57;;out;abstraction_WW; H09;ageb1_220;Regenabfluss in Großer Wannsee;0,204;1589892;212026;DWD_0433;;;in;rain_runoff; H09;ageb1_230;Regenabfluss in Kleine Wannseekette;0,209;1103741;148528;DWD_0433;;;in;rain_runoff; -H09;WW_BEE_rehw;Wasserwerk Beelitzhof Galerie Rehwiese;;;;;0,1;;out;abstraction_WW; +H09;WW_BEE_rehw;Wasserwerk Beelitzhof Galerie Rehwiese;;;;;0,1;yes;out;abstraction_WW; H09;WW_BEE_wann;Wasserwerk Beelitzhof Galerie Wannsee;;;;;0,6;;out;abstraction_WW; -H09;WW_BEE_wies;Wasserwerk Beelitzhof Galerie Wiesenleitung;;;;;0,5;;out;abstraction_WW; +H09;WW_BEE_wies;Wasserwerk Beelitzhof Galerie Wiesenleitung;;;;;0,5;yes;out;abstraction_WW; H09;WW_BEE_GWA;Wasserwerk Beelitzhof Galerie (GWA);;;;;1;;out;abstraction_WW;