Skip to content

Fix LabelToken selecting wrong label

Coung Ngo requested to merge cngo-fix-label-token-wrong-label into master

What does this MR do and why?

Labels are case-sensitive but the logic in LabelToken does not treat it as such, resulting in it choosing ~Direction when ~direction was actually chosen. This MR fixes that by making the logic to a case-sensitive match.

Changelog: fixed

Resolves: #361073 (closed)

Screenshots or screen recordings

before after
Screen_Recording_2022-05-17_at_4.27.01_pm Screen_Recording_2022-05-17_at_4.28.18_pm

How to set up and validate locally

  1. Make a Direction and direction label for a project
  2. Visit the project issues page
  3. Filter the issues with the direction label and confirm it doesn't show the Direction label

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Coung Ngo

Merge request reports