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

Help displayed on invalid jenkins slash command #40

Merged
merged 3 commits into from
Jul 25, 2020
Merged

Help displayed on invalid jenkins slash command #40

merged 3 commits into from
Jul 25, 2020

Conversation

abdulsmapara
Copy link
Contributor

@abdulsmapara abdulsmapara commented Jul 6, 2020

Summary

On invalid jenkins slash command (for eg. /jenkins run test2 as run is not a command), help is displayed to the user.

Ticket Link

Fixes #37

Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

One suggestion

server/command.go Outdated Show resolved Hide resolved
@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Jul 7, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2020

Codecov Report

Merging #40 into master will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #40      +/-   ##
=========================================
- Coverage    6.93%   6.91%   -0.03%     
=========================================
  Files           6       6              
  Lines         735     738       +3     
=========================================
  Hits           51      51              
- Misses        666     669       +3     
  Partials       18      18              
Impacted Files Coverage Δ
server/command.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ca2612...b0bd78a. Read the comment docs.

@hanzei hanzei requested a review from levb July 8, 2020 14:45
@levb levb removed the 2: Dev Review Requires review by a core committer label Jul 16, 2020
@levb levb requested a review from DHaussermann July 16, 2020 14:27
@hanzei hanzei modified the milestones: v1.1.0, v1.2.0 Jul 18, 2020
Copy link

@DHaussermann DHaussermann left a comment

Choose a reason for hiding this comment

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

Tested and passed

  • Invalid commands now show Unknown Command:<command>
  • Regression tested valid commands are not affected
  • No issues found.
    LGTM!

Thanks @abdulsmapara for fixing this!

@DHaussermann DHaussermann added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Jul 23, 2020
@hanzei hanzei merged commit 18ab5d4 into mattermost-community:master Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide feedback when using an invalid slash command
5 participants