So my GitHub App posts a check called ￼Work-in-progress state .
When I create a branch projection in the repo, I select Require status checks to pass before merging.
Then, I select Work-in-progress state and save.
Next thing I notice: there’s now ☐ Work-in-progress state and Work-in-progress state in options.
So it saved another check name as an expectation and there’s no way to select and save the correct one with emoji.
On the PR discussion page, down next to “Merge” button it also says Work-in-progress state Expected — Waiting for status to be reported which, of course, is not what I wanted.
So I’ve tried removing that emoji and whitespace before it from my code and it still didn’t match that branch protection check.
I used DevTools to inspect the label on the branch protection page and found out that there’s a trailing space.
So this time it didn’t work because "Work-in-progress state " != “Work-in-progress state”
From my observation, it looks like some sanitizing code on the branch protection page is broken affecting other places by just saving the wrong value to the database. It seems it removes Unicode things but in my case, it was especially hard to debug because that trailing whitespace is hard to visually spot on the web-page.
I hope, this can be addressed