Skip to content
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

fix: commit all styled files (styler example) #693

Merged
merged 8 commits into from
Apr 4, 2023

Conversation

dpprdan
Copy link
Contributor

@dpprdan dpprdan commented Jan 17, 2023

I noticed that not all styled files get committed to the repo in the styler example workflow. Example: 2 styled files vs 1 committed.

That made me think that we should style all supported files (currently qmd and Rprofile are missing) and trigger the workflow also on changes to (local) Rprofile.

cc @arisp99

@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2023

Codecov Report

Merging #693 (1e3fed0) into v2-branch (33f03a8) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           v2-branch      #693   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
===========================================
  Files              2         2           
  Lines             10        10           
===========================================
  Hits              10        10           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dpprdan
Copy link
Contributor Author

dpprdan commented Jan 17, 2023

this should fix #617

dpprdan added a commit to dpprdan/opencage that referenced this pull request Jan 19, 2023
@dpprdan dpprdan marked this pull request as draft January 27, 2023 19:41
shell: Rscript {0}

- name: Commit and push changes
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add R/\*
git add \*.[rR] \*.[qrR]md \*.[rR]markdown \*.[rR]nw \*.[rR]profile
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This throws an error, if one of those extensions is not available in the repo (which is quite likely). 😫

Copy link
Contributor Author

@dpprdan dpprdan Jan 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git add --ignore-errors throws the same error on GHA.

@gaborcsardi
Copy link
Member

Are you still planning on finishing this PR?

@dpprdan
Copy link
Contributor Author

dpprdan commented Apr 4, 2023

@gaborcsardi Thanks for the reminder! This is finished now from my point of view.

@dpprdan dpprdan marked this pull request as ready for review April 4, 2023 14:35
@gaborcsardi
Copy link
Member

Thanks!

@gaborcsardi gaborcsardi merged commit 4723ad2 into r-lib:v2-branch Apr 4, 2023
@dpprdan dpprdan deleted the fix/commit_all_styled_files branch April 4, 2023 16:25
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants