-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release Automation #264
base: main
Are you sure you want to change the base?
Release Automation #264
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Lets format the file using styler
- Rename R-Package to
release-automation
- Create a proper user guide which goes the steps to create a release branch and merging a release
R-package/R/osf-interactions.R
Outdated
dictionary) | ||
|
||
# Download previous release dictionary | ||
past_dictionary_path <- download_dictionary(past_dictionary_path, OSF_TOKEN, OSF_REPO_LINK, odm_dictionary$tmp_dictionary_directory_past_release, origin_directory = "Current Release") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the next lines which parses the dictionary should be pulled into a function that downloads and parses the currently released dictionary from osf. Would also be used in the create_release_files
function.
R-package/R/osf-interactions.R
Outdated
#' | ||
#' @param OSF_TOKEN The OSF token used to authenticate the user. | ||
#' @param OSF_LINK The OSF link to the main repo. | ||
archive_previous_release <- function(OSF_TOKEN, OSF_LINK, past_dictionary_version){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be split into functions. Once which creates the archive and one which uploads the new release.
R-package/R/osf-interactions.R
Outdated
#' @param files_to_extract A list of files to extract. | ||
#' @param dictionary The dictionary file. | ||
#' | ||
stage_osf_files <- function(files_to_extract, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this function essentially the same as the create_files
function.
…lso renamed the file
…Lab/PHES-ODM into automation-integration
…he workflow file.
* Files * R-package/R/odm-dictionary-file.R: Moved the log file path to the new logging module. * R-package/R/logging.R: The new logging module. * R-package/R/create-release-files.R: * Use the new setup_logging function. * Display the log file path when in the warning message for build errors. * R-package/R/osf-interactions.R * Use the new setup_logging function
The get_dictionary function used to assume that there would be multiple dictionaries downloaded from OSF which is unnecessary. The dictionary_path is now the full path to the downloaded dictionary rather than a folder that could contain multiple dictionaries. The download_dictionary function now returns the full path to the dictionary rather than the folder to where it's downloaded.
…e variable template_variables$version. Refactored code to use this.
…sheets. It now uses a column from a new sets sheet module.
…sheet module. Added new module called parts-sheet to contain columns for the parts sheet
…th booleans were giving the same inforamtion. Updated the references.
Contains user guides as well as the latest github actions and code for automation.
User guides and code changes are found within the R-package directory and the new action files are found within github/workflows directory.