| gh_open_PR_url | R Documentation |
gh_open_PR_url takes the owner, repo and branch you want to open a PR on, along with your owner name, repo and
head branch you want to pull from, and opens github at the exact page you need.
gh_open_PR_url(
head_branch = NULL,
base_owner = "textmatelives",
base_repo = "textmate",
base_branch = "main",
head_owner = "tbates",
local_path = ".",
browse = TRUE
)
head_branch |
Default |
base_owner |
Default |
base_repo |
Default |
base_branch |
Default |
head_owner |
Default |
local_path |
Default |
browse |
Default |
Before doing this, you want to
Fork to your account
Clone to your machine
Move to preferred location
Make a fix or feature branch and switch to it
Edit, commit, push, repeat: success!
Squash if necessary
PR from your/branch to upstream/main
gh_open_PR_url solves #7: pull requesting
url
https://tbates.github.io, tutorials
gh_feature_branch()
Other github:
gh_feature_branch(),
gh_message_search(),
xgh_check_base_name(),
xgh_get_current_branch()
## Not run:
gh_open_PR_url(head_branch="fix", browse = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.