RSMetaCheck can be used as a local command-line tool or integrated into your CI/CD pipeline as a GitHub Action.
poetry run rsmetacheck --input https://github.com/tidyverse/tidyversepoetry run rsmetacheck --input https://github.com/tidyverse/tidyverse --branch developCreate a repositories.json file:
{
"repositories": [
"https://github.com/example/repo_1",
"https://github.com/example/repo_2"
]
}Run the analysis:
poetry run rsmetacheck --input repositories.jsonRsMetaCheck can load a root-level .rsmetacheck.toml file to customize analysis behavior.
ignore = ["W002"]
exclude_files = ["tmp_metadata.json"]
[parameters.P001]
ahead_significant_diff = 10
[profiles.prerelease]
ignore = []
[profiles.unstable]
ignore = ["W002", "P017"]Use a profile:
poetry run rsmetacheck --input https://github.com/example/repo --config-profile unstableUse an explicit config path:
poetry run rsmetacheck --input https://github.com/example/repo --config ./ci/rsmetacheck.tomlYou can integrate RSMetaCheck into your GitHub workflows:
name: RsMetaCheck
on: [push, pull_request]
jobs:
check-metadata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: SoftwareUnderstanding/RsMetaCheck@v0.2.1
with:
verbose: "false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}