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

allow empty version prefix #10

Closed
wants to merge 3 commits into from
Closed

Conversation

marinakr
Copy link
Contributor

Contributor checklist

  • My commit messages follow the Conventional Commit Message Format
    For example: fix: Multiply by appropriate coefficient, or
    feat(Calculator): Correctly preserve history
    Any explanation or long form information in your commit message should be
    in a separate paragraph, separated by a blank line from the primary message
  • Bug fixes include regression tests
  • Features include unit/acceptance tests

@sourcelevel-bot
Copy link

Hello, @marinakr! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.

@@ -131,8 +130,7 @@ defmodule Mix.Tasks.GitOps.Release do
last_version_after = GitOps.Version.last_version_greater_than(tags, tag, prefix)

if last_version_after do
commit_messages_for_changelog =
GitOps.Git.commit_messages_since_tag(repo, last_version_after)
commit_messages_for_changelog = GitOps.Git.commit_messages_since_tag(repo, last_version_after)

Choose a reason for hiding this comment

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

Nested modules could be aliased at the top of the invoking module.

@@ -82,8 +82,7 @@ defmodule Mix.Tasks.GitOps.Release do

config_types = GitOps.Config.types()

{commit_messages_for_version, commit_messages_for_changelog} =
get_commit_messages(repo, prefix, tags, opts)
{commit_messages_for_version, commit_messages_for_changelog} = get_commit_messages(repo, prefix, tags, opts)

Choose a reason for hiding this comment

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

Line is too long (max is 100, was 112).

@@ -100,7 +99,7 @@ defmodule Mix.Tasks.GitOps.Release do
)
end

new_version = String.trim_leading(prefixed_new_version, prefix)
new_version = if "" != prefix, do: String.trim_leading(prefixed_new_version, prefix), else: prefixed_new_version

Choose a reason for hiding this comment

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

Line is too long (max is 100, was 116).

@@ -131,8 +130,7 @@ defmodule Mix.Tasks.GitOps.Release do
last_version_after = GitOps.Version.last_version_greater_than(tags, tag, prefix)

if last_version_after do
commit_messages_for_changelog =
GitOps.Git.commit_messages_since_tag(repo, last_version_after)
commit_messages_for_changelog = GitOps.Git.commit_messages_since_tag(repo, last_version_after)

Choose a reason for hiding this comment

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

Line is too long (max is 100, was 102).

@coveralls
Copy link

coveralls commented Jan 22, 2019

Pull Request Test Coverage Report for Build 71

  • 27 of 32 (84.38%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.3%) to 87.368%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/mix/tasks/git_ops.release.ex 17 22 77.27%
Totals Coverage Status
Change from base Build 69: 2.3%
Covered Lines: 166
Relevant Lines: 190

💛 - Coveralls

@sourcelevel-bot
Copy link

Ebert has finished reviewing this Pull Request and has found:

  • 15 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/zachdaniel/git_ops/pulls/10.

@marinakr marinakr closed this Jan 22, 2019
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.

None yet

2 participants