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

fix: should not fail on long body when using git --verbose #722

Merged
merged 2 commits into from
Jan 9, 2020

Conversation

mblarsen
Copy link
Contributor

@mblarsen mblarsen commented Jan 2, 2020

Q A
Branch master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Documented? no
Fixed tickets #656

This commit looks for a known marker in the git commit message when using git --verbose when the marker is seen it will ignore all lines after that (it will assume them to be comments).

The specs will test that long commit messages still fails above the marker.

New Task Checklist:

  • Is the README.md file updated?
  • Are the dependencies added to the composer.json suggestions?
  • Is the doc/tasks.md file updated?
  • Are the task parameters documented?
  • Is the task registered in the tasks.yml file?
  • Does the task contains phpspec tests?
  • Is the configuration having logical allowed types?
  • Does the task run in the correct context?
  • Is the run() method readable?
  • Is the run() method using the configuration correctly?
  • Are all CI services returning green?

@@ -294,9 +294,14 @@ private function subjectIsSingleLined(ContextInterface $context): bool
private function getCommitMessageLinesWithoutComments(string $commitMessage): array
{
$lines = preg_split('/\R/u', $commitMessage);
$everything_below_will_be_ignored = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use Camel Case ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, committed the style change f732427

@veewee veewee added this to the 0.17.2 milestone Jan 9, 2020
@veewee
Copy link
Contributor

veewee commented Jan 9, 2020

Thanks for the PR!

@veewee veewee merged commit 5044abd into phpro:master Jan 9, 2020
@mblarsen mblarsen deleted the fix-ignore-git-verbose branch January 10, 2020 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants