Skip to content

show message when changelog command invoked with not existing tag #14

Description

@usernam3

When meta_commit changelog is called and passed tag does not exist it shows error :

meta_commit/lib/meta_commit/changelog/commands/commit_diff_examiner.rb:21:in `meta': undefined method `oid' for nil:NilClass (NoMethodError)

It would be better if meta_commit will check tag presence before command execution and notify the user about it.

Scenario that should pass when this issue is closed (add it to features/changelog_command.feature)

Scenario: Run command passing not existing tags
  Given three_commits_with_two_tags_and_changelog git repository
  When I run meta_commit command `changelog v0.0.1 v0.0.2`
  Then the output should contain exactly "#{message_that_tag_does_not_exist}"
  Then the changelog should be equal to fixture file "header"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions