Skip to content

Use double quotes consistently #1914

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

Closed
wants to merge 1 commit into from
Closed

Conversation

svix-mman
Copy link
Contributor

Don't use a mix of single and double quotes

@svix-mman svix-mman force-pushed the mendy/consistent-quotes branch from c846aa0 to 2e214b5 Compare May 5, 2025 16:00
@svix-mman svix-mman force-pushed the mendy/consistent-quotes branch from 2e214b5 to b825695 Compare May 5, 2025 16:01
@svix-mman svix-mman marked this pull request as ready for review May 5, 2025 16:04
@svix-mman svix-mman requested a review from a team as a code owner May 5, 2025 16:04
Copy link
Contributor

@svix-onelson svix-onelson May 5, 2025

Choose a reason for hiding this comment

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

Sort of mirroring Jonas' comment, I would have encouraged us to go single-quote just because it feels safer in CI where shell invocations sometimes happen (and unexpected variable substitution could be unexpected). Single quotes are "safety on" with an explicit escalation to double quotes where needed.

Maybe that's just me?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cd .github/workflows/
find -type f -name "*.yml" | xargs sed -i  "s/\"/'/g"

Okie, I may as well get it right 🥲

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nvm, This is going to take more then 5 minutes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@svix-onelson does your comment block this PR, or can I merge?

Copy link
Contributor

@svix-onelson svix-onelson May 5, 2025

Choose a reason for hiding this comment

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

My preference is to just close the PR. I did a quick search under .github/ and there are 108-ish occurrences of " and the majority of them are in places where variable substitution are in play.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okie, I will close for now
We can always re-open 😉

@svix-mman svix-mman closed this May 5, 2025
@svix-jplatte svix-jplatte deleted the mendy/consistent-quotes branch May 5, 2025 17:44
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.

3 participants