Skip to content

Fixes #1822 - Adds GitHub contact form for anonymous reporting#2744

Merged
miketaylr merged 4 commits intowebcompat:masterfrom
karlcow:1822/2
Dec 18, 2018
Merged

Fixes #1822 - Adds GitHub contact form for anonymous reporting#2744
miketaylr merged 4 commits intowebcompat:masterfrom
karlcow:1822/2

Conversation

@karlcow
Copy link
Copy Markdown
Member

@karlcow karlcow commented Dec 18, 2018

This PR fixes issue #1822

Proposed PR background

We identified that some people have a github username but don't want the too hungry webcompat.com to be allowed for permissions. This is a very low tech, soft way to give an opportunity for people to share their GitHub nickname.

This will hopefully work better than the previous pull request #2713

r? @miketaylr

These tests make sure that the syntax checking for the GitHub contact name follows the right format.
An error message should be displayed if not valid.
Also the empty string should be ok.
This checks that the format of the GitHub contact name is correct
@karlcow karlcow requested a review from miketaylr December 18, 2018 12:56
@karlcow
Copy link
Copy Markdown
Member Author

karlcow commented Dec 18, 2018

Let's see if CircleCI is happier.

@karlcow
Copy link
Copy Markdown
Member Author

karlcow commented Dec 18, 2018

Alleluiah! All checks have passed! @miketaylr

Copy link
Copy Markdown
Member

@miketaylr miketaylr left a comment

Choose a reason for hiding this comment

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

excellent!

/* Check to see if the GitHub username has the right syntax. */
this.checkGitHubUsername = function() {
var contact = this.contactField.val();
if (this.isValidGitHubUsername(contact) || $.trim(contact) === "") {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(thanks for tweaking this)

@miketaylr miketaylr merged commit edb7234 into webcompat:master Dec 18, 2018
@karlcow karlcow deleted the 1822/2 branch May 9, 2019 07:43
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