Skip to content

[Issue #141] Fixing Issues and Adding Configurable Nx LGTM and LGTM Regex Options, Adding Rspec Tests#161

Merged
codenamev merged 2 commits intoreenhanced:masterfrom
simonzhu24:sz-issue/141-2xLGTM
Apr 14, 2016
Merged

[Issue #141] Fixing Issues and Adding Configurable Nx LGTM and LGTM Regex Options, Adding Rspec Tests#161
codenamev merged 2 commits intoreenhanced:masterfrom
simonzhu24:sz-issue/141-2xLGTM

Conversation

@simonzhu24
Copy link
Copy Markdown
Contributor

  1. Adding 2x LGTM and last comment must be LGTM option
  2. Made configurable number of LGTM options vs "all-reviewers-must-approve" option in "~/.gitconfig.reflow" and "setup.rb"
  3. Made LGTM Regex Expression configuration in ~/.gitconfig.reflow and "setup.rb"
  4. Added Rspec tests to cover both options, checking for correct pull_request.build.target_url values as well
  5. Added Rspec tests to check for different LGTM expressions (found and fixed bug)

@pboling
Copy link
Copy Markdown
Contributor

pboling commented Apr 12, 2016

LGTM 👍

Comment thread .gitignore Outdated
**/.DS_Store
.rspec
gemfiles
.ruby-version
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we'd like to keep this in as it's helpful to ensure development against the latest working version of ruby. Objections? I'm curious what issues you had with this in place.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, I don't see any reason not to keep *.ruby-version files in =)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We added it to .gitignore because we did not want to prescribe a ruby version for you. Should it be 2.3.0 then?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It should, quickly checking our circle file I see we are only testing against 2.2.4. Let's set it at that and I'll add a task to update our CI. I think I tested it manually against 2.3.0 when it was first released in December and it was failing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@codenamev
Copy link
Copy Markdown
Collaborator

Really great work here @pboling! I really like the configuration chooser at setup 😄

@pboling
Copy link
Copy Markdown
Contributor

pboling commented Apr 12, 2016

Regarding the spec syntax update, transpec can do the update automatically IIRC.

@codenamev codenamev mentioned this pull request Apr 12, 2016
@codenamev
Copy link
Copy Markdown
Collaborator

@pboling great idea. I've created a separate task to address that to keep the changes here smaller. Also, I appologize to @simonzhu24 for giving @pboling credit for this! My activity feed made it seem like he was the author. Thank you so much @simonzhu24 for your effort here 😄

@pboling
Copy link
Copy Markdown
Contributor

pboling commented Apr 12, 2016

@simonzhu24 has been the primary author here, I've just been giving him a lot of feedback, as we sit next to each other in the office. 👍

@codenamev
Copy link
Copy Markdown
Collaborator

1. Adding 2x LGTM and last comment must be LGTM option
2. Made configurable number of LGTM options vs "all-reviewers-must-approve" option in "~/.gitconfig.reflow" and "setup.rb"
3. Made LGTM Regex Expression configuration in ~/.gitconfig.reflow and "setup.rb"
4. Added Rspec tests to cover both options, checking for correct pull_request.build.target_url values as well
5. Added Rspec tests to check for different LGTM expressions (found and fixed bug)
@simonzhu24 simonzhu24 force-pushed the sz-issue/141-2xLGTM branch 4 times, most recently from 262435f to 4ca4347 Compare April 12, 2016 23:57
Comment thread lib/git_reflow/commands/setup.rb Outdated
}
end

GitReflow::Config.add "constants.approval_regex", /lgtm|looks good to me|[:\+1:]|:thumbsup:|:shipit:/i
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@simonzhu24 The regex is duplicated. We need to reference a single value everywhere the default is used. Please update this to reference GitReflow::GitServer::PullRequest::APPROVAL_REGEX

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch! 👍

@simonzhu24 simonzhu24 force-pushed the sz-issue/141-2xLGTM branch from 4ca4347 to f80d3e7 Compare April 13, 2016 00:16
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.

3 participants