Skip to content
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

feat: slack channel regex accepts channel id #540

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

brookesargent
Copy link
Contributor

Which problem is this PR solving?

Short description of the changes

Updates the Slack channel regex to include channel ids in addition to channels/users beginning with # or @

@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.23%. Comparing base (895e2a5) to head (82c3517).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #540   +/-   ##
=======================================
  Coverage   79.23%   79.23%           
=======================================
  Files          75       75           
  Lines        5963     5963           
=======================================
  Hits         4725     4725           
  Misses        915      915           
  Partials      323      323           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brookesargent brookesargent marked this pull request as ready for review September 3, 2024 16:58
@brookesargent brookesargent requested a review from a team as a code owner September 3, 2024 16:58
Copy link
Collaborator

@jharley jharley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -27,7 +29,7 @@ func newSlackRecipient() *schema.Resource {
Type: schema.TypeString,
Required: true,
Description: "The Slack channel or username to send the notification to. Must begin with `#` or `@`.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed this: should probably update this description here, or maybe just remove the "Must begin.." altogether?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The related doc in docs/resources/slack_recipient.md should get updated to match

@brookesargent brookesargent merged commit f6deb55 into main Sep 3, 2024
6 checks passed
@brookesargent brookesargent deleted the brooke.slack-regex-update branch September 3, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Providing a Slack Channel ID for trigger target returns an error.
3 participants