otoyo / astro-notion-blog

🚀 Begin building your very own Notion Blog with Astro.
https://astro-notion-blog.pages.dev/
MIT License
740 stars 487 forks source link

I got a update error afer I modified a file. #192

Closed lynnww closed 7 months ago

lynnww commented 7 months ago

Describe the bug

I add a Comments.astro file in component directory, and I modified the [slug].astro. When I commit the files , github give me some error like this: image image So I updated the lint.yml like this ` steps:

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'src/pages/post/[slug].astro'
  2. Click on 'edit this file' and make some change on it.
  3. Commit and it report error image
otoyo commented 7 months ago

Run npm run lint in your local so that you can see where those errors came from. If it passes, run npm run format to format your code automatically.

otoyo commented 7 months ago

FYI: I have updated the Node version and the runner versions of GitHub Actions so the warnings should disappear. https://github.com/otoyo/astro-notion-blog/pull/193