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

Raise error when no files found to pass to standard #7

Closed

Conversation

taylorthurlow
Copy link
Contributor

In setting up this action I had misconfigured things, and it took me a while to realize that my builds were "passing" not because they were free of errors, but standardrb was exiting successfully because it processed zero files. I think it's a fair assumption that something is wrong if no files are reported as checked by standardrb, so this just raises an error in that case rather than silently working.

@taylorthurlow
Copy link
Contributor Author

I hadn't realized there was an "official" standard action until spending some time on this today. So I am happy to have this (and the other PRs) merged if you find them useful. I was going to submit a PR to switch this action from a docker-based one to a "composite" action, but there are some improvements in the official repo that I think make it a better choice moving forward, so I've submitted that PR there instead.

Thanks for publishing this action in the first place, it has been useful!

@amoeba amoeba closed this Jan 15, 2024
@amoeba
Copy link
Owner

amoeba commented Jan 15, 2024

Thanks @taylorthurlow. You're right that there's an official action so changes are better off over there. I'm going to update the README for this repo and mark it archived so it's clear.

@amoeba
Copy link
Owner

amoeba commented Jan 15, 2024

Hey @taylorthurlow, I just checked and it's unclear to me if https://github.com/standardrb/standard-ruby-action is actually maintained any longer so if you have any trouble getting PRs merged over there please feel free to come back here and re-open your PRs.

@taylorthurlow
Copy link
Contributor Author

Will do - in this case I think the lack of activity is probably more due to the lack of need for changes, but I'll definitely follow up here again if all else fails.

Appreciate your time 😄

@amoeba
Copy link
Owner

amoeba commented Jan 15, 2024

If you end up getting your PRs merged, you might see if they'll publish the action to the marketplace (it's currently not listed), unpublish or update https://github.com/marketplace/actions/standardrb-action and archive https://github.com/andrewmcodes/standardrb-action.

@taylorthurlow
Copy link
Contributor Author

Opened standardrb/standard-ruby-action#8 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants