Automatically label issues that have comment message that will close issue

At some point, I started noticing that some repos had label added (by GH) that was something like “Pending Merge”, and had a description that the issue will be closed once merged.

Is this something I need to enable?

What I’m looking for is:

  1. close commit message e.g. git commit -m 'closes #123'
  2. issue 123 has a label “pending merge” (or whatever) added to it

i’m looking for a way of more quickly filtering through issues that are done vs still pending that doesn’t require opening each issue.

i’ve searched a few times over the last couple years and have always come up empty. i know i could make my own gh action, but i’d prefer not to if something exists already and i’m just missing it. TIA