Skip to content

teste for format for action - #1660

Closed
carlosstenzel wants to merge 1 commit into
supabase:masterfrom
carlosstenzel:feature/test-format-action
Closed

carlosstenzel wants to merge 1 commit into
supabase:masterfrom
carlosstenzel:feature/test-format-action

Conversation

@carlosstenzel

Copy link
Copy Markdown
Contributor

Test format
#1659

@vercel

vercel Bot commented May 21, 2021 •

Copy link
Copy Markdown

@inian

inian commented May 24, 2021 •

Copy link
Copy Markdown
Member

Hi @carlosstenzel, can you ignore the generated files in the prettier format? This leads to a messy commit history and it is hard to find out whats really changed in a commit because everytime a user re-generates the docs, they get un-prettified and GH action prettifies it again.

For example in this commit, the actual change was a small line but the changeset is large due to prettier not being applied here and this commit reverses that.

We can either

  • ignore generated files for prettier action
  • or add the prettier to generated commands like npm run gen:supabase

@carlosstenzel

Copy link
Copy Markdown
Contributor Author

we can skip some folders or use it only for some folders

@carlosstenzel

Copy link
Copy Markdown
Contributor Author

ex:

npx prettier --write './www/'
npx prettier --write './web/
'
..

@carlosstenzel

Copy link
Copy Markdown
Contributor Author

This branch was successfully deployed

3 active and 1 inactive deployments
Preview – nextjs-todo-list — 5cb5f12f Deployed May 21, 2021 by vercel[bot]
Preview – www — 5cb5f12f Deployed May 21, 2021 by vercel[bot]
Preview – main — 5cb5f12f Deployed May 21, 2021 by vercel[bot]
Preview – docs — 5cb5f12f Deployed May 21, 2021 by vercel[bot]
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