fix_snaps | R Documentation |
_snaps
files and merge all gha-
branchesThis method will apply patches from corresponding GitHub branches for each R and Operating System combination. Changes will not be committed or pushed back to GitHub. The user will need to perform this action manually.
fix_snaps(
sha = git_sha(repo_dir),
...,
ask_apps = FALSE,
ask_branches = TRUE,
ask_if_not_main = TRUE,
repo_dir = rprojroot::find_package_root_file()
)
sha |
git sha of base branch to look for |
... |
Extra arguments passed to |
ask_apps , ask_branches |
Logical which allows for particular apps or branches are to be inspected |
ask_if_not_main |
Logical which will check if |
repo_dir |
Root repo folder path |
Note: This function will NOT fix shinyjster
failures.
Outline of steps performed:
Validate the current git branch is main
Validate there are no git changes or untracked files in the current base branch
Validate there are .new
_snaps files
Create patch files for each corresponding gha-
branch in ./patches
Ask which branches should be applied. Filter patch files accordingly
Ask which app changes should be kept
Apply patch files
Call accept_snaps()
on all app folders
Undo changes to app that were not selected
Prompt user to commit and push changes back to GitHub
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.