Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/collect-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 20
timeout-minutes: 70 # Message Batches: up to 40 min wait (Program.cs) + one-by-one fallback
outputs:
has_changes: ${{ steps.commit.outputs.has_changes }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup .NET
uses: prozolic/Actions/.github/actions/setup-dotnet@main
with:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
echo "has_changes=true" >> "$GITHUB_OUTPUT"
fi
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: ./outputs/

Expand All @@ -65,7 +65,7 @@ jobs:
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

# NOTE: push with GITHUB_TOKEN won't invoke the event,
# as a workaround, directly call the action.
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ The application runs automatically via GitHub Actions every day at midnight (UTC

## AI Model

Claude Haiku 4.5
Claude Sonnet 5.5

### Previous models

- Claude Haiku 4.5: used from December 21, 2025 to October 8, 2026

## Development

Expand Down Expand Up @@ -44,7 +48,7 @@ https://prozolic.github.io/PRDigest.NET/feed.xml

#### Markdig

- Version: 1.2.0
- Version: 1.4.0
- URL: https://github.com/xoofx/markdig
- Copyright (c) 2018-2019, Alexandre Mutel
- Licensed under the [BSD 2-Clause License](https://github.com/xoofx/markdig/blob/main/license.txt)
Expand All @@ -58,7 +62,7 @@ https://prozolic.github.io/PRDigest.NET/feed.xml

#### Anthropic SDK for C\#

- Version: 12.23.0
- Version: 12.54.1
- URL: https://github.com/anthropics/anthropic-sdk-csharp
- Copyright 2023 Anthropic, PBC.
- Licensed under the [MIT License](https://github.com/anthropics/anthropic-sdk-csharp/blob/main/LICENSE)
Expand Down
17 changes: 16 additions & 1 deletion src/PRDigest.NET/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@

using Anthropic.Models.Messages;

namespace PRDigest.NET;

internal static class Constants
{
public const string Owner = "dotnet";
public const string Repository = "runtime";
public const string FullRepository = $"{Owner}/{Repository}";

public const Model SummaryModel = Model.ClaudeSonnet5_5; // Claude Sonnet 5.5

// Summarization settings shared by the Messages API and the Message Batches API.
// Thinking is turned off with "between_tools" (Sonnet 5.5 rejects "disabled"), so max_tokens covers only the summary.
// The prompt caps the summary at 1000 characters; 1024 tokens cut off about 4% of Haiku 4.5 summaries mid-sentence.
public const int SummaryMaxTokens = 2048;

// Shown instead of the summary when Claude declines to summarize a PR. It keeps the 概要 heading so that the
// monthly page and the RSS feed, which read only that section, show it too.
public const string RefusedSummary = """
#### 概要
この Pull Request は、安全性に関する判定により要約を生成できませんでした。変更内容は元の Pull Request を参照してください。
""";
}
4 changes: 2 additions & 2 deletions src/PRDigest.NET/PRDigest.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Markdig" Version="1.3.2" />
<PackageReference Include="Markdig" Version="1.4.0" />
<PackageReference Include="Octokit" Version="14.0.0" />
<PackageReference Include="Anthropic" Version="12.44.0" />
<PackageReference Include="Anthropic" Version="12.54.1" />
</ItemGroup>

</Project>
Loading
Loading