Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a cross-archive label index and per-label PR list pages to the generated static site. The generator now scans every archived markdown file, aggregates PRs by label using the existing PullRequestAnalyzer, and emits outputs/labels/index.html plus outputs/labels/{sanitized-label}/index.html pages. The index page also gets a new link into the label index, and a reusable scroll-to-top button is introduced for long pages.
Changes:
- New
CreateLabelPageHtmlpipeline step andLabelPullRequestInfoaggregation type inProgram.cs, plus the centralizedStringComparerOptions.DefaultComparer. - New
GenerateLabelIndexHtml,GenerateLabelPageHtml,SanitizeLabelForPath, and supporting CSS/JS (sortable table, scroll-to-top button) inHtmlGenerator.cs;GenerateIndexnow filters output to four-digit year directories and links to the label index. - Shared
StringComparerextracted intoStringComparerOptionsand reused fromProgramandHtmlGenerator.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/PRDigest.NET/StringComparerOptions.cs | Introduces a shared NumericOrdering invariant StringComparer reused by multiple call sites. |
| src/PRDigest.NET/Program.cs | Adds CreateLabelPageHtml (aggregating labels across all archives) and the LabelPullRequestInfo type; replaces inline comparer with the shared one. |
| src/PRDigest.NET/HtmlGenerator.cs | Adds label index/per-label page generators, label-path sanitizer, sortable-table script, scroll-to-top button/CSS, and tightens GenerateIndex to only enumerate four-digit year dirs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.