Skip to content

Validate input of /github connect - #287

Merged
hanzei merged 2 commits into
masterfrom
231_connect-validate
Jun 11, 2020
Merged

hanzei merged 2 commits into
masterfrom
231_connect-validate

Conversation

@hanzei

@hanzei hanzei commented May 26, 2020 •

Copy link
Copy Markdown
Contributor

Summary

  • Only treat /github connect private as a valid command an error otherwise.
  • If private repos are disabled, report an error.

Ticket Link

Fixes #231

@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels May 26, 2020
@hanzei
hanzei requested review from cpoile and larkox May 26, 2020 10:54
@codecov-commenter

codecov-commenter commented May 26, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #287 into master will decrease coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #287      +/-   ##
==========================================
- Coverage   18.09%   18.01%   -0.08%     
==========================================
  Files          10       10              
  Lines        2377     2387      +10     
==========================================
  Hits          430      430              
- Misses       1922     1932      +10     
  Partials       25       25              
Impacted Files Coverage Δ
server/command.go 9.57% <0.00%> (-0.54%) ⬇️

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 bdb2b98...cb9f194. Read the comment docs.

@hanzei
hanzei requested a review from DHaussermann May 27, 2020 09:43
@hanzei hanzei removed the 2: Dev Review Requires review by a core committer label May 27, 2020
@hanzei hanzei added this to the v1.1.0 milestone May 28, 2020

@DHaussermann DHaussermann left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested and passed. This PR successfully implemented the following usability enhancements:

  1. When command is invalid such as /github connect privatee user is shown feedback that the command is invalid instead of getting a public connect link and shown the correct command.
  2. Trying to use the private connect command will display feedback that if private repositories have been disabled rather than help text
  • Regression tested connect and connect private

LGTM!
Thanks @hanzei

@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 Jun 11, 2020
@hanzei
hanzei merged commit 5927f51 into master Jun 11, 2020
@hanzei
hanzei deleted the 231_connect-validate branch June 11, 2020 17:47
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.

Validate when /github connect is followed by an invalid value

5 participants