Skip to content

Remove AstroError if content directory is empty#8382

Merged
ematipico merged 6 commits intowithastro:mainfrom
DerTimonius:fix/empty-collection-dir-error
Sep 21, 2023
Merged

Remove AstroError if content directory is empty#8382
ematipico merged 6 commits intowithastro:mainfrom
DerTimonius:fix/empty-collection-dir-error

Conversation

@DerTimonius
Copy link
Contributor

Changes

Testing

Added a new test in the content-collection.test.js, currently work in progress

Docs

Docs are unaffected by this change

Still Todo

Wanted to wait for some feedback before:

  • Finish tests
  • changeset

@changeset-bot
Copy link

changeset-bot bot commented Sep 3, 2023

🦋 Changeset detected

Latest commit: ef8269e

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Sep 3, 2023
@florian-lefebvre
Copy link
Member

Any news on this? Maybe you can mark it as ready and you'll get reviews about the changeset etc?

@DerTimonius
Copy link
Contributor Author

I wanted to wait for initial feedback, since I was not sure if I'm on the right track here, but I'll mark it as ready for review

@DerTimonius DerTimonius marked this pull request as ready for review September 9, 2023 10:29
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

I believe we can merge this PR, once rebased

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for empty content collections

3 participants