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

UCP: support help command #7

Open
you06 opened this issue Mar 12, 2020 · 3 comments
Open

UCP: support help command #7

you06 opened this issue Mar 12, 2020 · 3 comments

Comments

@you06
Copy link
Contributor

you06 commented Mar 12, 2020

Description

  • Move all available commands into a single package, and add descriptions for them.
  • /help command will comment with basic usage comment.

Bonus

/help command comments different guide for different people, consider the access.

Difficulty

  • Easy

Score

  • 300

The extra bonus worth 200 points.

Mentor

@you06

Recommended Skills

  • Go
@sunl888
Copy link
Contributor

sunl888 commented Mar 25, 2020

Are all the available commands in cmd/bot.go

@you06
Copy link
Contributor Author

you06 commented Mar 25, 2020

@wq1019 You only need to consider the commands in this bot.

To find all commands, you can look into the issue comment handle function in providers to find all the available commands.
https://github.com/pingcap-incubator/cherry-bot/blob/70abd98e8864e5b80bc9cb6ad1497512339724bd/bot/webhook.go#L71-L97

@you06
Copy link
Contributor Author

you06 commented Mar 25, 2020

Maybe you can collect all the commands into pkg/types or a new package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants