Skip to content

feat: map GitHub PR labels to Wave complexity points (Closes #13) - #58

Open
ZacLou wants to merge 3 commits into
StellarRoute:mainfrom
ZacLou:feat/issue-13-label-points-mapping
Open

feat: map GitHub PR labels to Wave complexity points (Closes #13)#58
ZacLou wants to merge 3 commits into
StellarRoute:mainfrom
ZacLou:feat/issue-13-label-points-mapping

Conversation

@ZacLou

@ZacLou ZacLou commented Aug 27, 2026

Copy link
Copy Markdown

Closes #13

Changes

Maps GitHub PR labels to Wave complexity points instead of hardcoding points: 1:

Label → Points mapping

GitHub Label Points
complexity:high 5
complexity:medium 3
complexity:low 2
(no recognized label) 1 (default)

Files changed

  • crates/shared/src/types.rs: Added GitHubLabel struct and labels field to GitHubPullRequest
  • crates/gateway/src/webhook.rs: Added label_to_points() mapping function, updated parse_merge_event() to use mapped points

Tests added (4 new)

  • parse_merge_event_maps_complexity_labels_to_points — medium label → 3 points
  • parse_merge_event_defaults_points_to_1_without_label — default fallback
  • parse_merge_event_maps_high_complexity — high label → 5 points
  • parse_merge_event_maps_low_complexity — low label → 2 points

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.

[gateway] Map GitHub PR labels to Wave complexity points

1 participant