Hey everyone! I’m having trouble with my GitHub and Slack setup. I want Slack to notify me when a pull request is merged into a release branch, but it’s not working as expected.
This command filters for closed pull requests that were actually merged into branches starting with ‘RELEASE-’. It should significantly reduce noise while ensuring you get the notifications you need.
Remember to test it thoroughly after setting up. Sometimes GitHub’s webhook delivery can be delayed, so give it some time before concluding it’s not working. If you’re still having trouble, double-check your Slack app permissions and GitHub repository settings.
This command specifically targets merged PRs on release branches. We found that using ‘state:“closed”’ instead of ‘action:“closed”’ was more reliable.
Also, make sure your Slack app has the necessary permissions in GitHub. We had to update our app’s permissions to include ‘pull_request’ events.
If you’re still not getting notifications, try unsubscribing completely and then resubscribing with the new command. Sometimes that clears up any lingering issues.