Skip to content

Commit 1920d80

Browse files
authored
Merge pull request #3599 from Ivy-Interactive/plan-02236-Ivy-Framework
[02236] Fix ParseContent returning raw frontmatter as description
2 parents f34fa15 + 9b3ab82 commit 1920d80

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/tendril/Ivy.Tendril.Test/InboxWatcherServiceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ public void ParseContent_FrontmatterWithoutProject_ReturnsAuto()
4141
}
4242

4343
[Fact]
44-
public void ParseContent_EmptyDescriptionAfterFrontmatter_ReturnsFull()
44+
public void ParseContent_EmptyDescriptionAfterFrontmatter_ReturnsEmpty()
4545
{
4646
var content = "---\nproject: Agent\n---\n";
4747

4848
var (project, description, sourcePath) = InboxWatcherService.ParseContent(content);
4949

5050
Assert.Equal("Agent", project);
51-
Assert.Equal(content, description);
51+
Assert.Equal("", description);
5252
Assert.Null(sourcePath);
5353
}
5454

src/tendril/Ivy.Tendril/Services/InboxWatcherService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ internal static (string project, string description, string? sourcePath) ParseCo
164164
sourcePath = trimmed.Substring("sourcePath:".Length).Trim();
165165
}
166166

167-
var desc = string.IsNullOrEmpty(description) ? content : description;
168-
return (project ?? "[Auto]", desc, sourcePath);
167+
return (project ?? "[Auto]", description, sourcePath);
169168
}
170169
}
171170

0 commit comments

Comments
 (0)