I have a probot app that merges pull requests once all CI statuses succeed.
Is closing via API supposed to behave as closing via web?
Solved! Solved! Go to Solution.
The mystery has been solved 🎉
After playing back-and-forth, even trying some non-sense stuff. I found the problem!
The bot needs issue write permissions, otherwise closing issues using keywords will "fail silently" (╯°□°)╯︵ ┻━┻
Thanks a lot for being here, we appreciate you coming back to share your solution.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!
We're observing the same issue, but with the Mergify app. Which does seem to have issue write permission, so I'm stumped as to how to solve this...
If the problem is with permissions you may be able to see some specific errors in the logs.
Turns out this was the same problem as for you. It's been fixed by upstream since a couple of months ago. See https://github.com/Mergifyio/mergify-engine/issues/466#issuecomment-520297764.