diff --git a/.github/please-bump.yaml b/.github/please-bump.yaml new file mode 100644 index 0000000..03e6b5b --- /dev/null +++ b/.github/please-bump.yaml @@ -0,0 +1,16 @@ +version: 1 +groups: + netdiffuseR: + paths: + - R/ + - src/ + - inst/ + - man/ + - man-roxygen/ + - data-raw/ + - DESCRIPTION + - NAMESPACE + - NEWS.md + rules: + - preset: r-package + - preset: r-news-changes diff --git a/.github/workflows/please-bump.yml b/.github/workflows/please-bump.yml new file mode 100644 index 0000000..662168f --- /dev/null +++ b/.github/workflows/please-bump.yml @@ -0,0 +1,30 @@ +name: please-bump + +on: + pull_request: + types: [opened, synchronize, reopened] + branches: [master] + +permissions: + contents: read + # A PR from a fork gets a read-only GITHUB_TOKEN no matter what this says, + # so please-bump can't post/update its sticky comment there -- it logs a + # warning and continues; the pass/fail result and step summary are + # unaffected either way. `pull_request_target` would fix that, but it + # hands a write-scoped token to a job that also diffs/checks out the + # fork's own code, which needs careful sandboxing to be safe -- not worth + # it just for a comment. Report-only-for-forks is the deliberate tradeoff. + pull-requests: write + +jobs: + please-bump: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: gvegayon/please-bump@v1 + with: + # Report-only for now: posts the sticky comment, never reddens a PR. + # Flip to true once we've seen it behave on real PRs. + fail-on-error: false