Skip to content

feat: standardized parsing of set headers - #8099

Open
Rathoz wants to merge 2 commits into
mainfrom
standardized-setheader-parsing
Open

Rathoz wants to merge 2 commits into
mainfrom
standardized-setheader-parsing

Conversation

@Rathoz

@Rathoz Rathoz commented Sep 16, 2026

Copy link
Copy Markdown
Member

Summary

We have standardized support of set parsing and display, but not of custom set headers. This PR implements this.

How did you test this change?

dev on chess and sc2

@Rathoz
Rathoz marked this pull request as ready for review September 17, 2026 10:42
@Rathoz
Rathoz requested review from a team as code owners September 17, 2026 10:42
Copilot AI lite review requested due to automatic review settings September 17, 2026 10:42

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.

🟡 Changes recommended

Empty subgroup headers must be normalized to preserve the default set label.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Standardizes set-header parsing across match-group inputs and custom wiki parsers.

Changes:

  • Adds shared set-header parsing.
  • Migrates Warcraft, Stormgate, Hearthstone, and StarCraft handling.
  • Preserves game-specific header mappings.
File summaries
File Description
lua/wikis/warcraft/MatchGroup/Input/Custom.lua Uses standardized subgroup headers.
lua/wikis/stormgate/MatchGroup/Input/Custom.lua Uses standardized subgroup headers.
lua/wikis/hearthstone/MatchGroup/Input/Custom.lua Uses standardized subgroup headers.
lua/wikis/commons/MatchGroup/Input/Util.lua Adds shared header parsing.
lua/wikis/commons/MatchGroup/Input/Starcraft.lua Uses shared submatch-header parsing.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lua/wikis/commons/MatchGroup/Input/Util.lua
return Table.map(setHeaders, function(key, value)
return 'subgroup' .. (key:sub(#prefix + 1)), value
end)
end

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maybe we should write this in a way that it allows the bot jobs without breaking stuff?
(and after the bot jobs change it to this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants