Add GitHub Action to regenerate example_data when convert_output.R changes#229
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/nmfs-ost/stockplotr/sessions/16147f90-2416-4af0-a517-a1d297703e33 Co-authored-by: Schiano-NOAA <125507018+Schiano-NOAA@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Action to update example data on release
Add GitHub Action to regenerate example_data when convert_output.R changes
Apr 9, 2026
Collaborator
|
@copilot by using this action, is the script data-raw/DATASET.R unnecessary? |
Contributor
Author
Not entirely —
The GitHub Action automates the same regeneration in CI, but keeping |
Contributor
Code Metrics Report
Reported by octocov |
Schiano-NOAA
added a commit
that referenced
this pull request
Apr 15, 2026
* [Fix] bugs identified in plot_recruitment (#220) * add in optional ggplot args * adjust process data so grouping is correctly adjusted based on model condition and grouping * change default model as 1 from NA * set plot to look for only recruitment and not rec exp or obs * allow users to access ggplot geom args * fix maggritr in pipe * Update "SSB" to "SB" in captions/alt text/key quantities csvs * [Fix] plot_indices (#221) * initial commit of new obs v pred plot * adjust process data so it converts all indexed data to character to function even when input values are numeric per #212 * update plot indices to use new plot_obsvpred function and adjust based on needs * update documentation for package * adjust plot_indices where nfleet = 1 and update test to remove new file produced * add missing dependency * [Fix] plot_spawning_biomass when user wants to use DERIVED_QUANTITIES from SS3 (#222) * adjust reference line to take our era and use plot data instead * adjust reference label to replace underscore with space * update ref line documentation * fix commit from overwrite when rebasing * fixes to plot including adjusting missing legend * add back in ggplot options * adjust plot ts to stop error from color label * adjust conditions where legend is remove * Add GitHub Action to regenerate example_data when convert_output.R changes (#229) * Initial plan * Add GitHub Action to update example_data when convert_output.R changes Agent-Logs-Url: https://github.com/nmfs-ost/stockplotr/sessions/16147f90-2416-4af0-a517-a1d297703e33 Co-authored-by: Schiano-NOAA <125507018+Schiano-NOAA@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Schiano-NOAA <125507018+Schiano-NOAA@users.noreply.github.com> * Update tests to remove key_quantities.csv when complete * Address plot_recruitment_deviations() documentation review suggestions (#227) * Address most suggestions as per #198 * Add details section * Update documentation * update version --------- Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
data/example_data.rdahad no automated path to stay in sync whenconvert_output.Rwas updated — it required manual execution ofdata-raw/DATASET.R.Changes
.github/workflows/update-example-data.yml— new workflow that:mainwith path filterR/convert_output.R, plusworkflow_dispatchusethis) viar-lib/actionsexample_datausing the same pattern asdata-raw/DATASET.Rto preserve the correct object name in the.rda:data/example_data.rdaasgithub-actions[bot]with[skip ci]to avoid loops; skips the commit entirely if the data is unchangedcontents: writepermission to push back to the branch