fastlane-plugin-semantic_release 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '04344676923fc44788a389d16e617faeb2a0c45887fd724817e762df3862eaff'
4
- data.tar.gz: 40008eb55b6177c4da04286dc0669af751dcb9386236fecbef3061ea47d18656
3
+ metadata.gz: 991694d09785835a5aee8a33b9d53ba0d30294942a13abbb5611a6a82b45022f
4
+ data.tar.gz: a65c5eb20db107b72792baad5bcf6e3e49629703f878cd0228530a2c892f48c8
5
5
  SHA512:
6
- metadata.gz: 929f9948bee1c0b4ab94c0b56c38339832e6e6508c0f073029e787bba98dc2bd837bfc0938d79596660248049dd4f81715e4555cbec356eafe939b2a505ee622
7
- data.tar.gz: ab2f15113d8a4daa22f51382c85d3db9570e1b3cfe6ddcb7a0646f404c9bfa01350e1f5ad583d6afa0d708bc59b9ae16758d42fc02eae9f288ebd18d43d394c7
6
+ metadata.gz: 9d71f3cb33ac74a94a761a48d72ca42acd3babc5d9d8234352346bd56dd55ad4d79685be372f2c1e1d9ec834947ec53074fcd66146381a80d26b10870b3bdb58
7
+ data.tar.gz: b32097e494de9908a958039e115dfdff3e1cbc9a2d9f26bf59099cbc5803fa8bc998c776517a72978410056f8d9ceaec2c653936c3142ecd6b42f66e7c87ca94
data/README.md CHANGED
@@ -50,6 +50,12 @@ notes = conventional_changelog(format: 'slack', title: 'Android Alpha')
50
50
  - analyzes subject of every single commit and increases version number if there is a need (check conventional commit rules)
51
51
  - if next version number is higher then last version number it will recommend you to release this version
52
52
 
53
+ Options:
54
+
55
+ - `ignore_scopes: ['android','windows']`: allows you to ignore any commits which include a given scope, like this one: `feat(android): add functionality not relevant to the release we are producing`
56
+
57
+ Example usage:
58
+
53
59
  ```
54
60
  isReleasable = analyze_commits(match: 'ios/beta*')
55
61
  ```
@@ -85,6 +85,14 @@ module Fastlane
85
85
  releases: releases
86
86
  )
87
87
 
88
+ unless commit[:scope].nil?
89
+ # if this commit has a scope, then we need to inspect to see if that is one of the scopes we're trying to exclude
90
+ scope = commit[:scope]
91
+ scopes_to_ignore = params[:ignore_scopes]
92
+ # if it is, we'll skip this commit when bumping versions
93
+ next if scopes_to_ignore.include?(scope) #=> true
94
+ end
95
+
88
96
  if commit[:release] == "major" || commit[:is_breaking_change]
89
97
  next_major += 1
90
98
  next_minor = 0
@@ -211,6 +219,13 @@ module Fastlane
211
219
  key: :tag_version_match,
212
220
  description: "To parse version number from tag name",
213
221
  default_value: '\d+\.\d+\.\d+'
222
+ ),
223
+ FastlaneCore::ConfigItem.new(
224
+ key: :ignore_scopes,
225
+ description: "To ignore certain scopes when calculating releases",
226
+ default_value: [],
227
+ type: Array,
228
+ optional: true
214
229
  )
215
230
  ]
216
231
  end
@@ -1 +1 @@
1
- module Fastlane module SemanticRelease VERSION = "1.7.0" end end
1
+ module Fastlane module SemanticRelease VERSION = "1.8.0" end end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-semantic_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Otáhal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-22 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry