Skip to content

Add LabelIndex page#23

Merged
prozolic merged 1 commit into
mainfrom
labelpage
May 31, 2026
Merged

Add LabelIndex page#23
prozolic merged 1 commit into
mainfrom
labelpage

Conversation

@prozolic

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 31, 2026 05:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 CreateLabelPageHtml pipeline step and LabelPullRequestInfo aggregation type in Program.cs, plus the centralized StringComparerOptions.DefaultComparer.
  • New GenerateLabelIndexHtml, GenerateLabelPageHtml, SanitizeLabelForPath, and supporting CSS/JS (sortable table, scroll-to-top button) in HtmlGenerator.cs; GenerateIndex now filters output to four-digit year directories and links to the label index.
  • Shared StringComparer extracted into StringComparerOptions and reused from Program and HtmlGenerator.

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.

Comment thread src/PRDigest.NET/HtmlGenerator.cs
Comment thread src/PRDigest.NET/HtmlGenerator.cs
@prozolic prozolic merged commit 5e2b668 into main May 31, 2026
3 checks passed
@prozolic prozolic deleted the labelpage branch May 31, 2026 05:37
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.

2 participants