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
Testing 6 #17
Conversation
Styler workflow
Styler workflow
Update styler-actions.yml
few changes in styler-actions.yml
/style |
The next invocation of the style command will find only |
/style |
Answer, styler runs, finds no changes to make, and exits reporting success. Nothing is committed. The only downside I see here is that you need to go check the actions tab to tell whether the run is still in progress or completed without finding any changes. But then again most people won't be requesting a styler run when there's nothing to style, so this is probably not a big deal. |
The next invocation of the styler command will find no R files changed, but should notice and fix one misedited Rd file. Let's see what happens! |
/style |
Answer: Styler runs but doesn't commit the change! It took me a while to track down why:
|
The next invocation tests again after fixing issue 2 ( Note also that each time we invoke styler it looks at the set of all files changed in this pull request, not just the files changed in the most recent commit like I was assuming above. But of course the style changes to *.R have already been committed by previous styler invocations, so we should only see changes in the newly touched files. |
/style |
/style (Apparently I didn't actually push the [[ fix before) |
/style |
Result: In this case the mangled Rd file gets fixed, but by accident (because utils gets rebuilt when |
d32caae
to
def8208
Compare
This PR will test
Different mixes of R vs other files, including confirming that it does nothing when no R files are changed