You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm very interested in the pattern used by use_github_action() as an alternative to use_template() when it makes sense to host files somewhere else (e.g. we want to make it easier to grab a file from R but don't necessarily want to host it in the package itself because it's useful for other purposes).
I think it would be nice to refactor that internal code to a new exported function, e.g. use_github_file(), which could then be called by use_github_action(). The pattern for reading a file from GitHub is, thankfully, not that complex, but it's very useful.
Happy to prepare a PR if it seems like it's worth exporting that code
The text was updated successfully, but these errors were encountered:
* Add use_github_file()
Closes#1407
* Comment not needed now
* Add tests
* Avoid lazy quantifier
* Note a GHE (maybe) TODO
* Support URL parsing for GHE
* Add more real-but-unsupported URLs
* NEWS bullet
* Use use_github_file() in use_github_action()
Closes#1483
* Add more to NEWS bullet
* Mention use_github_file() in use_github_action()
* Use use_github_file() here
* Replace some `master` with `HEAD`
* Work on docs
* Update snapshot test
* Comma
* Target tag 'v1' in r-lib/actions
I'm very interested in the pattern used by
use_github_action()
as an alternative touse_template()
when it makes sense to host files somewhere else (e.g. we want to make it easier to grab a file from R but don't necessarily want to host it in the package itself because it's useful for other purposes).I think it would be nice to refactor that internal code to a new exported function, e.g.
use_github_file()
, which could then be called byuse_github_action()
. The pattern for reading a file from GitHub is, thankfully, not that complex, but it's very useful.Happy to prepare a PR if it seems like it's worth exporting that code
The text was updated successfully, but these errors were encountered: