Changelog
Source:NEWS.md
kwb.pkgbuild 0.3.0 2026-05-07
-
Modernise GitHub Actions workflows (both in
.github/workflows/of this repo and the templates ininst/templates/ci_github-actions/) so that they run on current GitHub-hosted runners again:Bump action versions:
actions/checkout@v5,actions/upload-artifact@v4,codecov/codecov-action@v5,JamesIves/github-pages-deploy-action@v4.7.3, and replace the deprecatedr-lib/actions@masterreferences withr-lib/actions@v2. The@v5/@v4.7.3bumps run on Node.js 24 and avoid the GitHub deprecation warning for Node.js 20 actions (forced default June 2026, removed September 2026, see https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/).Switch from the retired
ubuntu-20.04runner toubuntu-latestand rename the matrix entryoldreltooldrel-1.Replace the archived
r-hub/sysreqsstep withr-lib/actions/setup-r-dependencies@v2, which also handles dependency caching out of the box.Fix a stale
if: runner.os == 'Linux (no, try without!)'condition that silently disabled the Linux system-dependency step.pkgdownworkflow: deploy viaJamesIves/github-pages-deploy-action@v4onubuntu-latest, with explicitpermissions: contents: writeand a concurrency group.test-coverageworkflow: produce a Cobertura report and upload via the newcodecov/codecov-action@v4; upload test artefacts on failure.pr-commandsworkflow: gate/documentand/stylejobs ongithub.event.issue.pull_requestso they no longer fire on plain issue comments.
-
Add optional Claude Code GitHub Actions workflows (analogue to kwb.raindrop):
New templates in
inst/templates/ci_github-actions-claude/:claude.yaml(responds to@claudementions in issues and PR reviews) andclaude-code-review.yaml(automatic PR review onopened/synchronize).New exported function
use_ghactions_claude()to add only the Claude workflows to an existing package.use_ghactions()anduse_pkg()gain aclaude = FALSEtoggle that additionally installs the Claude workflows when set toTRUE. The workflows expect aCLAUDE_CODE_OAUTH_TOKENrepository secret to be configured in GitHub.
-
Documentation cleanup:
Remove dead duplicate definitions of
git(),construct_commit_message()andgithub_push()inR/deploy_site_github_with_extra_files.R(they were silently overwritten by later definitions in the same file).Fix copy/paste errors in
@returnforuse_index_md(),use_badge_ghactions_rcmdcheck()anduse_badge_runiverse()(which referenced “travis” / “codecov” badges instead of the actual return value).Mark internal helpers (
use_installation(),read_description(),kwb_author(),kwb_package()) with@noRdso they no longer create public Rd entries.Rewrite the titles / descriptions for
use_pkgdown(),use_readme_md()anduse_index_md()so the man pages describe what the function actually does.Fix typos (
releveant,directoy,aleady,DESCIPTION,(default: KWB-R"),file patern) across roxygen blocks and Rd files.
use_pkgdown(): expose the KWB logo as parameterskwb_logo_url(default:https://logos.kompetenz-wasser.io/KWB_Logo_M_Blau_RGB.svg) andkwb_logo_href(default:https://www.kompetenz-wasser.de) so the default logo URL is no longer hardcoded inside the function body and can be overridden per package without forking the function.-
Vignettes:
New vignette
vignette("github-actions", package = "kwb.pkgbuild")describing the default workflows, the optional Claude Code integration, theCLAUDE_CODE_OAUTH_TOKENsecret, and how to refresh workflows in existing packages.Update
vignette("tutorial"): replace stale Travis / AppVeyor references with the GitHub Actions workflow set, document the newclaude = TRUEswitch inuse_pkg(), and fix thekwb.pkgdown/kwb.pkddowntypos.
kwb.pkgbuild 0.2.3 2022-10-24
-
Fix GitHub action worfklows:
fix continuous integration workflows (i.e.
pkgdown,Rcmdcheck,test-coverage)), which were broken after 2022-10-15 due to unavailablemasterbranch in upstream dependency r-lib/actions.fix pkgdown GitHub actions workflow, which crashed during
build_news()generation onwindowsdue to anrecent change in Windows that has made it incompatible with old openssl servers(thanks to @jeroen for that hint!) and @garborcsardi for this workaround!). For full discussion on this issue (which might be fixed in an upcoming pkgdown version 2.0.7) see pkgdown#2211
kwb.pkgbuild 0.2.2 2022-05-11
- GitHub actions: use
windowsas default operating system forpkgdown(for building documentation website) andtest coverageworkflow instead ofmacosx
kwb.pkgbuild 0.2.1 2022-02-09
- Bugfix for correctly writing package documentation website URL to
_pkgdown.yml
kwb.pkgbuild 0.2.0 2022-01-20
-
Documentation website with
pkgdown (>= 2.0.2)and new KWB website:Design: now using
bootstrap5and colors slightly adapted to KWB design.URL to KWB logo was updated due to new website.
Attention: URLs to projects (including logos) need to be corrected manually (for old
_pkgdown.ymlfiles
Deleted functions for unused CIs
travisandappveyor
kwb.pkgbuild 0.1.9 2021-09-10
- Fix
Rcmdcheckworkflow on GitHub Actions by explicitly adding default organisationGITHUB_PAT
kwb.pkgbuild 0.1.8 2021-07-13
- Add
use_badge_runiverse()(for linking to https://kwb-r.r-universe.dev) if package is available and use forindex.mdandREADME.md
kwb.pkgbuild 0.1.7 2021-02-23
- Improve re-usability of Github Actions badges (for R package
kwb.pkgstatus)
kwb.pkgbuild 0.1.6 2020-11-24
Add function
deploy_to_branch_with_extra_files()for using github-actions to deploy to gh-pages (#73)Use GitHub Actions as default CI (#78) and removed support for Travis and Appveyor
kwb.pkgbuild 0.1.5 2020-10-09
Update default GitHub branch to
mainsince 2020-10-01 (see: Article)add_creation_metadata: write creation metadata in yaml format as defaulttravis.yml template: add dependencies required for pkgdown (>= 1.6.1) installation
Update Travis-CI badges after migrating KWB-R build from travis-ci.org to .com (#72)
kwb.pkgbuild 0.1.4 2020-06-23
- Fix use_travis_deploy() to correctly generate key for using pkgdown on Travis to deploy to gh-pages (#70)
kwb.pkgbuild 0.1.3 2020-05-04
- Add functions missing in pkgdown (>= 1.5.0) required for deploy_site_github_with_extra_files()
kwb.pkgbuild 0.1.2 2019-09-17
- Fixed MIT LICENSE creation for CRAN (#60)
kwb.pkgbuild 0.1.1 2019-09-06
- Use .md instead of .Rmd due to changed workflow in pkgdown v1.4 (see: r-lib/pkgdown#1136)
kwb.pkgbuild 0.1.0 2019-09-04
Improved use in case of an existing R package (by reading information from DESCRIPTION file with function
kwb.pkgbuild::read_description)-
Improved documentation generation (closes #6)
Changed
README.Rmdtoindex.Rmd(used bypkgdown::build_home) and added “Installation” chapterAdded “Installation” chapter in
README.mdfor Github repo site
Automatically convert package title to Title Case with
tools::toTitleCase()Added a
NEWS.mdfile to track changes to the package.See http://style.tidyverse.org/news.html for writing a good
NEWS.md