Skip to content

Recognize WIP after other title tags - #974

Merged
Fryguy merged 2 commits into
ManageIQ:masterfrom
missusk:fix-wip-title-tag-detection
Aug 28, 2026
Merged

Recognize WIP after other title tags#974
Fryguy merged 2 commits into
ManageIQ:masterfrom
missusk:fix-wip-title-tag-detection

Conversation

@missusk

@missusk missusk commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Uses the existing leading title-tag parser when adding or removing the wip label. This recognizes WIP after tags such as RFR, avoids adding a duplicate [WIP], and preserves other leading tags when WIP is removed.

The regression spec fails on master: adding the label changes [RFR] [WIP] Fix title to [WIP] [RFR] [WIP] Fix title, while removing the label leaves the title unchanged.

Fixes #334

Tested:

  • bundle exec rspec spec/lib/github_service/issue_spec.rb spec/models/branch_spec.rb spec/workers/pull_request_monitor_handlers/wip_labeler_spec.rb (37 examples, 0 failures)
  • bundle exec rake (365 examples, 0 failures on Ruby 3.3.10/Linux)

@missusk
missusk marked this pull request as ready for review August 26, 2026 08:14
@Fryguy

Fryguy commented Aug 26, 2026

Copy link
Copy Markdown
Member

Nice fix! Thank you @missusk!

Comment thread lib/github_service/issue.rb Outdated
@missusk
missusk requested a review from Fryguy August 26, 2026 16:15
@Fryguy Fryguy self-assigned this Aug 26, 2026
@Fryguy Fryguy added the bug label Aug 26, 2026
@Fryguy
Fryguy merged commit 3b03e71 into ManageIQ:master Aug 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

regex in notification monitor for WIP is insufficient

2 participants