integrations / slack

Bring your code to the conversations you care about with the GitHub and Slack integration
https://slack.github.com/
MIT License
3.07k stars 482 forks source link

Trying to filter slack workflow notification on 'dependabot[bot]' #1719

Open amundsor opened 1 year ago

amundsor commented 1 year ago

Trying to use this command in a Slack channel to subscribe to a Github workflow in a repo: /github subscribe owner/repo workflows:{name:"Build kotlin" event:"pull_request" actor:"dependabot[bot]" }

When the GitHub App sums up the subscription, it looks like this: This channel will receive notifications from [owner/repo] (https://github.com/owner/repo) for: workflows:{name:"Build kotlin" event:"pull_request" actor:"dependabot[bot"} And the last ']' is missing.

To Reproduce Steps to reproduce the behavior:

  1. In a slack channel, subscribe to a workflow with the actor 'dependabot[bot]'

Expected behavior The summary should include the last ']' in the actor name.

Additional context The issue is present both in Slack App and Slack web-browser, which might suggest that the issue is the GitHub side of it?

juliennonin commented 2 weeks ago

The error is not limited to dependabot, but applies to all bots. Their actor name contains the suffix [bot], but the closing square bracket is not parsed correctly.