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

Create user center slack and integrate with importer #230

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

Anan1225
Copy link
Contributor

OSPP project

  1. Create user center Slack including login and authorization
  2. Add notification slack type with upvoted, downvoted, etc.
  3. Complete slash command function in Slack, /ask [Title][Context][Tag]

see issue151

user-center-slack/README.md Outdated Show resolved Hide resolved
user-center-slack/client.go Outdated Show resolved Hide resolved
user-center-slack/client.go Outdated Show resolved Hide resolved
user-center-slack/client.go Outdated Show resolved Hide resolved
user-center-slack/config.go Outdated Show resolved Hide resolved
user-center-slack/config.go Outdated Show resolved Hide resolved
user-center-slack/i18n/zh_CN.yaml Outdated Show resolved Hide resolved
Comment on lines +30 to +32
part1 := matches[0][1]
part2 := matches[1][1]
rawTags := strings.Split(matches[2][1], ",")
Copy link
Member

Choose a reason for hiding this comment

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

Of course in most cases there is no problem with taking [1] directly. But it's safer to judge the internal length.

user-center-slack/handler.go Outdated Show resolved Hide resolved
user-center-slack/slack_user_center.go Outdated Show resolved Hide resolved
user-center-slack/slack_user_center.go Outdated Show resolved Hide resolved
Copy link
Member

@LinkinStars LinkinStars left a comment

Choose a reason for hiding this comment

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

An excellent plugin. LGTM.

@LinkinStars LinkinStars merged commit d296971 into apache:main Oct 16, 2024
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.

2 participants