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

Send an approved public kudos to the #kudos slack channel. #2776

Merged
merged 18 commits into from
Jan 7, 2025

Conversation

ocielliottc
Copy link
Collaborator

@ocielliottc ocielliottc commented Nov 15, 2024

This requires two environment variables:

  1. SLACK_WEBHOOK_URL - which is the URL for the Slack installed application that is available when the integration app is installed to the kudos channel (already done). This is on the Installed App Settings tab.
  2. SLACK_BOT_TOKEN - this is available on the same tab. This part allows the application to search for a channel id and user ids.

https://api.slack.com/apps/A081ESV0D5W/install-on-team

The application has already been installed to the #kudos channel. We just need to deploy this and provide the above environment variables.

This is what the test channel looks like:

image

@ocielliottc
Copy link
Collaborator Author

I'm looking into adding a test for the SlackPoster...

@ocielliottc ocielliottc linked an issue Nov 15, 2024 that may be closed by this pull request
}

public String findUserId(String userEmail) {
String token = System.getenv(env);
Copy link
Member

Choose a reason for hiding this comment

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

I missed this...fixing.

@mkimberlin mkimberlin merged commit 7151f2d into develop Jan 7, 2025
5 checks passed
@mkimberlin mkimberlin deleted the feature-2751/post-approved-kudos-to-slack branch January 7, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post approved public Kudos to Slack
2 participants