Run in an R package:
ghactions4r::use_doc_and_style_r(how_to_commit = "pull_request", build_trigger = "pull_request")
and push the workflow to github.
Try creating a branch, make a change that requires styling, and opening a pull request.
The workflow will error
Expected behavior
A pull request opens to the branch.
Another option if we don't want to support this workflow is to have use_doc_and_style_r() error with a helpful message if someone tries to set up a workflow with options how_to_commit = "pull_request", build_trigger = "pull_request"
Screenshots
No response
Which OS are you seeing the problem on?
No response
Which browser are you seeing the problem on?
No response
Which version of ghactions4r are you seeing the problem on?
Describe the bug
From @iantaylor-NOAA :
To Reproduce
Run in an R package:
ghactions4r::use_doc_and_style_r(how_to_commit = "pull_request", build_trigger = "pull_request")
and push the workflow to github.Try creating a branch, make a change that requires styling, and opening a pull request.
The workflow will error
Expected behavior
A pull request opens to the branch.
Another option if we don't want to support this workflow is to have
use_doc_and_style_r()
error with a helpful message if someone tries to set up a workflow with optionshow_to_commit = "pull_request", build_trigger = "pull_request"
Screenshots
No response
Which OS are you seeing the problem on?
No response
Which browser are you seeing the problem on?
No response
Which version of ghactions4r are you seeing the problem on?
No response
Additional Context
No response