Expose repo content hints to rumination

This commit is contained in:
Meta Vens 2026-05-18 03:43:20 +01:00
commit 8ce19260c2
4 changed files with 118 additions and 1 deletions

View file

@ -151,7 +151,11 @@ function Project-OpenCasesForRumination {
param($Cases, [DateTime] $Now)
return @(
@(Convert-ToValueArray -Value $Cases) | ForEach-Object {
@(Convert-ToValueArray -Value $Cases) |
Where-Object {
-not (Test-RuminationCaseTerminal -Status (Get-ObjectPropertyString -Value $_ -Name "status"))
} |
ForEach-Object {
@{
sourceMessageId = Get-ObjectPropertyString -Value $_ -Name "sourceMessageId"
status = Get-ObjectPropertyString -Value $_ -Name "status"
@ -169,6 +173,12 @@ function Project-OpenCasesForRumination {
)
}
function Test-RuminationCaseTerminal {
param([string] $Status)
return @("answered", "resolved", "closed", "retired", "dropped").Contains($Status)
}
function Project-SpeechReceiptsForRumination {
param($Receipts, [DateTime] $Now)
@ -351,6 +361,7 @@ function Project-RepoCommitForRumination {
subject = Get-ObjectPropertyString -Value $Commit -Name "subject"
diffstat = Get-ObjectPropertyValue -Value $Commit -Name "diffstat"
changedPaths = @(Convert-ToValueArray -Value (Get-ObjectPropertyValue -Value $Commit -Name "changedPaths"))
contentHints = @(Convert-ToValueArray -Value (Get-ObjectPropertyValue -Value $Commit -Name "contentHints"))
}
}