fastlane-plugin-semantic_release 1.0.7 → 1.0.8
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06f275a6ba5ed94f9ddca8382caab148ca9d3eb5258f69929e2dbf812b685076
|
|
4
|
+
data.tar.gz: 9e1e30f5f2e34a270f972d2dc5ea41121898ff386b0d092ae3ea0a26cc3f483d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f75f488c4c526ff5c4e225f3ade6767fa50b9dcba9ac76bda5850f2cd3cc6c58e70fe6742921911dbb766df8bc1538df79af8f1561faed0483720490eb6ed20
|
|
7
|
+
data.tar.gz: f73eb17cd7638e7a90283522eef7c67b8b42d7c2f68aa51a26b726519dcf1026dde3d53678301a6496c968e42bbb98b2aed2d536ec7568f2d7701a069a5b44de
|
data/README.md
CHANGED
|
@@ -4,35 +4,45 @@
|
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
7
|
-
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-semantic_release`, add it to your project by running:
|
|
8
|
-
|
|
9
7
|
```bash
|
|
10
8
|
fastlane add_plugin semantic_release
|
|
11
9
|
```
|
|
12
10
|
|
|
13
|
-
## About
|
|
11
|
+
## About
|
|
12
|
+
|
|
13
|
+
Automated version managment and generator of release notes. Inspired by [semantic-release](https://github.com/semantic-release/semantic-release) for npm packages. Based on [conventional commits](https://www.conventionalcommits.org/).
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
### Articles
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
[Semantic Release for Fastlane](https://medium.com/@xotahal/semantic-release-for-fastlane-781df4cf5888?source=friends_link&sk=5c02e32daca7a68539e27e0e1bac1092) @ Medium - By Jiri Otahal
|
|
18
18
|
|
|
19
|
+
## Available Actions
|
|
20
|
+
|
|
21
|
+
### conventional_changelog
|
|
22
|
+
|
|
23
|
+
- parses all commits since last version
|
|
24
|
+
- group those commits by their type (fix, feat, docs, refactor, chore, etc)
|
|
25
|
+
- and creates formated release notes either in markdown or in slack format
|
|
19
26
|
|
|
27
|
+
```
|
|
28
|
+
notes = conventional_changelog(format: 'slack', title: 'Android Alpha')
|
|
29
|
+
```
|
|
20
30
|
|
|
21
|
-
|
|
31
|
+
<img src="https://raw.githubusercontent.com/xotahal/fastlane-plugin-semantic_release/master/docs/Changelog.png" />
|
|
22
32
|
|
|
23
33
|
### analyze_commits
|
|
34
|
+
|
|
24
35
|
- analyzes your git history
|
|
25
36
|
- finds last tag on current branch (for example ios/beta/1.3.2)
|
|
26
37
|
- parses the last version from tag (1.3.2)
|
|
27
38
|
- gets all commits since this tag
|
|
28
39
|
- analyzes subject of every single commit and increases version number if there is a need (check conventional commit rules)
|
|
29
40
|
- if next version number is higher then last version number it will recommend you to release this version
|
|
30
|
-
|
|
31
|
-
Please run `fastlane action analyze_commits` to see all documentation in your command line.
|
|
32
41
|
```
|
|
33
42
|
isReleasable = analyze_commits(match: 'ios/beta*')
|
|
34
43
|
```
|
|
35
|
-
|
|
44
|
+
|
|
45
|
+
It provides these variables in lane_context.
|
|
36
46
|
```
|
|
37
47
|
['RELEASE_ANALYZED', 'True if commits were analyzed.'],
|
|
38
48
|
['RELEASE_IS_NEXT_VERSION_HIGHER', 'True if next version is higher then last version'],
|
|
@@ -43,35 +53,15 @@ It leave these variables in lane_context. You can get them by `lane_context[Shar
|
|
|
43
53
|
['RELEASE_NEXT_PATCH_VERSION', 'Patch number of the next version'],
|
|
44
54
|
['RELEASE_NEXT_VERSION', 'Next version string in format (major.minor.patch)'],
|
|
45
55
|
```
|
|
46
|
-
|
|
47
|
-
- parses all commits since last version
|
|
48
|
-
- group those commits by their type (fix, feat, docs, refactor, chore, etc)
|
|
49
|
-
- and creates formated release notes either in markdown or in slack format
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
notes = conventional_changelog(format: 'slack', title: 'Android Alpha')
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Issues and Feedback
|
|
56
|
-
|
|
57
|
-
For any other issues and feedback about this plugin, please submit it to this repository.
|
|
58
|
-
|
|
59
|
-
## Troubleshooting
|
|
60
|
-
|
|
61
|
-
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
|
62
|
-
|
|
63
|
-
## Using _fastlane_ Plugins
|
|
64
|
-
|
|
65
|
-
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
|
56
|
+
`next_version = lane_context[SharedValues::RELEASE_NEXT_VERSION]`
|
|
66
57
|
|
|
67
|
-
## About _fastlane_
|
|
68
58
|
|
|
69
|
-
|
|
59
|
+
<img src="https://raw.githubusercontent.com/xotahal/fastlane-plugin-semantic_release/master/docs/Analyze.png" />
|
|
70
60
|
|
|
71
|
-
|
|
61
|
+
### Questions
|
|
72
62
|
|
|
73
63
|
If you need anything ping us on [twitter](http://bit.ly/t-xotahal).
|
|
74
64
|
|
|
75
|
-
| Jiri Otahal
|
|
76
|
-
|
|
|
65
|
+
| Jiri Otahal |
|
|
66
|
+
| -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
77
67
|
| [<img src="https://avatars3.githubusercontent.com/u/3531955?v=4" width="100px;" style="border-radius:50px"/>](http://bit.ly/t-xotahal) |
|
|
@@ -40,7 +40,13 @@ module Fastlane
|
|
|
40
40
|
# Tag's format is v2.3.4-5-g7685948
|
|
41
41
|
# See git describe man page for more info
|
|
42
42
|
tag_name = tag.split('-')[0].strip
|
|
43
|
-
|
|
43
|
+
parsed_version = tag_name.match(params[:tag_version_match])
|
|
44
|
+
|
|
45
|
+
if parsed_version.nil?
|
|
46
|
+
UI.user_error!("Error while parsing version from tag #{tag_name} by using tag_version_match - #{params[:tag_version_match]}. Please check if the tag contains version as you expect and if you are using single brackets for tag_version_match parameter.")
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
version = parsed_version[0]
|
|
44
50
|
# Get a hash of last version tag
|
|
45
51
|
command = "git rev-list -n 1 #{tag_name}"
|
|
46
52
|
hash = Actions.sh(command, log: false).chomp
|
|
@@ -1 +1 @@
|
|
|
1
|
-
module Fastlane module SemanticRelease VERSION = "1.0.
|
|
1
|
+
module Fastlane module SemanticRelease VERSION = "1.0.8" 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.0.
|
|
4
|
+
version: 1.0.8
|
|
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-03-
|
|
11
|
+
date: 2019-03-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|