MCPcopy Index your code
hub / github.com/anomalyco/opencode / section

Function section

script/raw-changelog.ts:76–82  ·  view source on GitHub ↗
(areas: Set<string>)

Source from the content-addressed store, hash-verified

74}
75
76function section(areas: Set<string>) {
77 const priority = ["core", "tui", "app", "tauri", "sdk", "plugin", "extensions/vscode", "github"]
78 for (const area of priority) {
79 if (areas.has(area)) return sections[area as keyof typeof sections]
80 }
81 return "Core"
82}
83
84function type(message: string) {
85 if (message.match(/fix/i)) return "Bugfixes"

Callers 1

formatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected