Skip to content

Conversation

GabsEdits
Copy link
Owner

Closes #1

@GabsEdits GabsEdits requested a review from Copilot June 5, 2025 14:58
@GabsEdits GabsEdits self-assigned this Jun 5, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses feed validation issues by updating both RSS and JSON feed formats.

  • Removed the extraneous element from the RSS feed output.
  • Removed the "updated" property from JSON feed tests and corrected the date formatting call.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test.ts Adjusted tests to expect feeds without the element and without the "updated" property.
src/rss.ts Removed the redundant element in the RSS feed generation.
src/json.ts Fixed the date_published field to correctly invoke toUTCString(), ensuring proper timestamp.
Comments suppressed due to low confidence (1)

src/rss.ts:51

  • Consider adding an inline comment explaining why the element has been removed to ensure future maintainers understand this change is intended to comply with feed validation standards.
    <author>${emailPart}(${escapedName})</author>\n

items: this.items.map((
{ id, title, url, date_published, content_html },
) => ({
id,
title,
url,
date_published: date_published?.toISOString() || new Date().toUTCString,
date_published: date_published?.toISOString() ||
new Date().toUTCString(),
Copy link
Preview

Copilot AI Jun 5, 2025

Choose a reason for hiding this comment

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

Ensure that the toUTCString() method is invoked correctly (with parentheses) to produce a valid formatted string for the date_published field, which appears to be fixed in this diff.

Copilot uses AI. Check for mistakes.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I already did that thought, why tell me what I already did?

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.

None of the feeds validate right now
1 participant