Skip to content

Conversation

@lmammino
Copy link
Member

@lmammino lmammino commented Nov 8, 2025

The rustfmt commit exposed an issue where the Quote struct in create-issue was using String for author_url, but fetch-quote was returning Option.

Changes:

  • Updated Quote struct in create-issue to use Option for author_url
  • Fixed test template to use camelCase field names (authorUrl, authorDescription) instead of snake_case (author_url, author_description) to match serde renames
  • Removed outdated assertion checking for subscribe_form which was removed from the template in a previous commit

All tests now pass.

The rustfmt commit exposed an issue where the Quote struct in create-issue
was using String for author_url, but fetch-quote was returning Option<String>.

Changes:
- Updated Quote struct in create-issue to use Option<String> for author_url
- Fixed test template to use camelCase field names (authorUrl, authorDescription)
  instead of snake_case (author_url, author_description) to match serde renames
- Removed outdated assertion checking for subscribe_form which was removed
  from the template in a previous commit

All tests now pass.
@lmammino lmammino requested a review from Copilot November 8, 2025 18:34
Copy link

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 makes the author_url field optional in the Quote struct and updates test code to use the correct camelCase field names in Tera templates, aligning with the serde rename attributes.

  • Changed author_url field from String to Option<String> with conditional serialization
  • Updated test templates to use camelCase naming (authorUrl, authorDescription) instead of snake_case
  • Removed outdated test assertion and trailing whitespace

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
functions/create-issue/src/model.rs Made author_url field optional with Option<String> and added skip_serializing_if
functions/create-issue/src/template.rs Updated test code to use camelCase field names, wrapped author_url in Some(), removed outdated assertion, and cleaned up trailing whitespace

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lmammino lmammino merged commit 6fc8911 into main Nov 8, 2025
9 checks passed
@lmammino lmammino deleted the claude/fix-failing-tests-011CUvap93jua4x9Mzwaa5La branch November 8, 2025 20:41
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.

3 participants