fastlane-plugin-sequenia_gitflow 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d90ad35db8ffe773c2658fe8458108256d32740f5e1ac8feff944e62bc7b90bb
4
- data.tar.gz: 1583ffcfcea55aa2d20be5dbfa0fc7626ffc85f808e3e986945161b0770f212d
3
+ metadata.gz: b5153f7fdae0a8f745235679bd7e582f7b64d8f6432d79073016a738983bdb3e
4
+ data.tar.gz: 69d511ee4189855ca77ae1b01e0f844e088c837567c1a6ab485c55b6f433f5b4
5
5
  SHA512:
6
- metadata.gz: 28cd011637f4db95375e5cd3bd4a6bbe5d3e0b40f9df4954a0d53927e5b3650fe3df487c9a2d755b6b3e068c00d16ebecb223831a318d361fab765b935e38512
7
- data.tar.gz: 977fe58b725ccf03b4aa108cfcc3b0dc511b60ec07218a8d1ce2aa2f35635fa35a53135bbbad48024303c4f70e388bfbf732657638bc52dc89056114076d8cc1
6
+ metadata.gz: c6b5b12369dc01ea935524407c8f4b4690f7210d1521f36f55fed2e902c9eb29b77fe8dd980aec72733647617957ef32c4a5ee33efe9152a95394fb423483eed
7
+ data.tar.gz: 6120513f58e56f341d3e2587be9cd5881892eadc8009e5f67537b5b369590ec4f374c001fc72f0da8bb832281ef4d2751eb1b1f0c0b53bfe0e065bb07d17793b
@@ -6,15 +6,16 @@ module Fastlane
6
6
  class FetchMergedTasksAction < Action
7
7
  def self.run(params)
8
8
  last_tag = params[:last_release_tag]
9
+ first_commit = Helper::SequeniaGitflowHelper.first_commit
9
10
  regexp = params[:feature_branches_regexp]
10
11
  already_with_prefix = params[:already_with_prefix]
11
12
 
12
- if !Helper::SequeniaGitflowHelper.tag_exist?(last_tag)
13
+ if !last_tag.nil? && !Helper::SequeniaGitflowHelper.tag_exist?(last_tag)
13
14
  UI.user_error!("Tag '#{last_tag}' doesn't exist")
14
15
  end
15
16
 
16
- all_branch_commits = Helper::SequeniaGitflowHelper.current_branch_all_commit_hashes(last_tag)
17
- merge_commits = Helper::SequeniaGitflowHelper.current_branch_merge_commit_hashes(last_tag)
17
+ all_branch_commits = Helper::SequeniaGitflowHelper.current_branch_all_commit_hashes(last_tag || first_commit)
18
+ merge_commits = Helper::SequeniaGitflowHelper.current_branch_merge_commit_hashes(last_tag || first_commit)
18
19
 
19
20
  branches = Helper::SequeniaGitflowHelper.fetch_merged_task_branches(
20
21
  all_branch_commits,
@@ -11,7 +11,7 @@ module Fastlane
11
11
  end
12
12
 
13
13
  def self.first_commit
14
- array_from_gitlog('git log --reverse | head -n1').first
14
+ array_from_gitlog('git log --pretty=\"%H\" --reverse | head -n1').first
15
15
  end
16
16
 
17
17
  # Получение merge-коммитов от последнего релизного тэга до HEAD ветки
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SequeniaGitflow
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sequenia_gitflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Semen Kologrivov