New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels added after PR creation do not trigger Slack messages #1594
Comments
@gergelyke-dd The way label filter works is that it filters any PR event based on the label present in it. When the PR is opened and if there is no label attached to it while opening, we don't process that event and we drop it. So there is no PR notification for the opened PR. Now later if we add label then we don't have any parent(opened) PR card for it so the PR edited(label) event can't do anything. |
@sanjeev9160 any chance there's a workaround here for the use-case outlined above? We'd like to use tags to signal different life-cycle events of a PR, and for that we'd like to use Slack notifications |
@sanjeev9160 would it be appropriate to make a feature request that there be a new trigger added to this integration that fires based on when a label is added or removed from a PR / issue? My proposed use case:
If desired I can make this it's own issue ticket. |
@gergelyke-dd @gileswells I have added it as a Feature request into the backlog. Thanks. |
FWIW: this also breaks anyone using an autolabel github action, since those labels need the PR to be opened before the action can run. If there's a better way to make labels appear in the PR based on changed files before the PR is opened, I'm all ears. |
Perhaps relevant: the alert does come through when a labeled PR is closed. Upon close of a PR with a filtered label which wasn't present at opening, the "new PR" message gets created, and the close comment gets posted as a reply which is CC'd to the channel as normal. So it seems there is logic hidden away somewhere which can create the top level post upon later filter-matching events. ;) |
Currently we manage this with a Slack workflow:
But it would be great if this would work with the Github App in slack as well, then we could ditch this workflow. |
That would be an awesome feature because it promotes automation. We also have labels added to PRs based on team who created it. This would allow us to filter PRs from our team only. The goal is to do less "by hand" when creating a PR :) ps.: I see that a close PR event creates a message on a slack channel (with configured filters for labels). |
Any update on that? (Can the backlog be seen anywhere?) We're interested in that feature too (For the same reasons as some of the other people mentioned: after the CI run succeeded a "needs review" label is added to the PR at which point it would be great to be able to send a Slack notification to people). |
I have the exact same need... |
This is really needed on my end too. I would prefer not to make a workflow just for a label notification. |
Hi @sanjeev9160 When this will be fixed? |
Would like to add my name to this request. Use Case: Code Owners have requested an automated way to know when a Pull is "Urgent" and requires their immediate priority over other reviews. Ideally this can be added as a label at anytime and then a slack notification will be sent alerting a slack channel with all owners in it for visibility. |
We also need this feature to be able to add labels after the fact through automation and still have them routed properly |
Is this feature still in the backlog? This would be a game-changer for us in terms of automation. |
Describe the bug
Once an PR is created, labels added to it do not trigger Slack notifications
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Slack message is triggered
The text was updated successfully, but these errors were encountered: