Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 8, 2025

Addresses review feedback from PR #138 to rename sortsBlogs to sortedBlogs in src/lib/getBlog.ts.

Changes

  • Variable naming: Renamed sortsBlogssortedBlogs to correctly indicate the variable contains sorted results rather than suggesting an action
const getBlog = async () => {
  const blogs = await getCollection('blog');
  const sortedBlogs = blogs.sort((a, b) => {
    const dateA = new Date(a.data.pubDate).getTime();
    const dateB = new Date(b.data.pubDate).getTime();
    return dateB - dateA;
  });

  return sortedBlogs;
};

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Address feedback from review on PR #138 for v1.1.0 changes Fix grammatically incorrect variable name in getBlog Dec 8, 2025
Copilot AI requested a review from naoki-00-ito December 8, 2025 16:58
@naoki-00-ito naoki-00-ito marked this pull request as ready for review December 8, 2025 16:58
@naoki-00-ito naoki-00-ito merged commit b973a44 into develop Dec 8, 2025
1 check passed
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