nmfs-fish-tools / ghactions4r

Reusable github actions workflows for R packages
https://nmfs-fish-tools.github.io/ghactions4r/
12 stars 1 forks source link

Feature, #30: add options to commit directly to in style and document workflow #31

Closed k-doering-NOAA closed 2 years ago

k-doering-NOAA commented 2 years ago

This addresses a feature request in #30. The option to commit directly is now available, and can be used by specifying commit_directly = true. E.g.,

    uses: nmfs-fish-tools/ghactions4r/.github/workflows/doc-and-style-r.yml@test-commit-to-pr-doc-style
    with: 
      commit-directly: true

This pull request also extends the use_doc_and_style_r() function by:

Tests of this function were also extended.

See ?use_doc_and_style_r in the r console for full details.

@Bai-Li-NOAA , if you have time to review in the next week or so (I know you have been busy!) that would be great! If not, perhaps I will go ahead and just merge this in sooner, and fixes can be made as needed at a later time.