gitlab_awesome_release 1.0.2 → 1.0.3
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 +4 -4
- data/.gitlab-ci.yml +23 -9
- data/CHANGELOG.md +11 -1
- data/README.md +2 -0
- data/gitlab-ci/setup.sh +4 -0
- data/lib/gitlab_awesome_release/project.rb +11 -7
- data/lib/gitlab_awesome_release/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc883b30e29624a6142a294bbc9bb6b34c9b6bc08d0a91ce5447729659ba0bdb
|
|
4
|
+
data.tar.gz: d71375698195d481dcddbd7b380f067d2e45a7957d1e1d23311ca42ff90231a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa029fc2109fcc670a5d8894d44e1852a8752f038f1bbee981ad6843124cace6712a7301344f394489c5a5c3e213bb19b43b0bea19d54f166c6c07c8ef78255c
|
|
7
|
+
data.tar.gz: 4aede8475c7c84a6a2c8337ada8809489697ae95eb570fa69be274a894a23e6cdb71436fd9bceb1310a2ebc96adec89069670c3173a922d9cc6e1596719e2a9c
|
data/.gitlab-ci.yml
CHANGED
|
@@ -2,7 +2,7 @@ stages:
|
|
|
2
2
|
- test
|
|
3
3
|
- deploy
|
|
4
4
|
|
|
5
|
-
.
|
|
5
|
+
.default:
|
|
6
6
|
variables:
|
|
7
7
|
BUNDLE_CACHE: "vendor/bundle/"
|
|
8
8
|
|
|
@@ -20,49 +20,63 @@ stages:
|
|
|
20
20
|
- tags
|
|
21
21
|
|
|
22
22
|
ruby2.1:rspec:
|
|
23
|
-
|
|
23
|
+
extends: .default
|
|
24
24
|
image: ruby:2.1
|
|
25
25
|
|
|
26
26
|
script:
|
|
27
27
|
- ./gitlab-ci/rspec.sh
|
|
28
28
|
|
|
29
29
|
ruby2.2:rspec:
|
|
30
|
-
|
|
30
|
+
extends: .default
|
|
31
31
|
image: ruby:2.2
|
|
32
32
|
|
|
33
33
|
script:
|
|
34
34
|
- ./gitlab-ci/rspec.sh
|
|
35
35
|
|
|
36
36
|
ruby2.3:rspec:
|
|
37
|
-
|
|
37
|
+
extends: .default
|
|
38
38
|
image: ruby:2.3
|
|
39
39
|
|
|
40
40
|
script:
|
|
41
41
|
- ./gitlab-ci/rspec.sh
|
|
42
42
|
|
|
43
43
|
ruby2.4:rspec:
|
|
44
|
-
|
|
44
|
+
extends: .default
|
|
45
45
|
image: ruby:2.4
|
|
46
46
|
|
|
47
47
|
script:
|
|
48
48
|
- ./gitlab-ci/rspec.sh
|
|
49
49
|
|
|
50
50
|
ruby2.5:rspec:
|
|
51
|
-
|
|
51
|
+
extends: .default
|
|
52
52
|
image: ruby:2.5
|
|
53
53
|
|
|
54
54
|
script:
|
|
55
55
|
- ./gitlab-ci/rspec.sh
|
|
56
56
|
|
|
57
57
|
ruby2.6:rspec:
|
|
58
|
-
|
|
58
|
+
extends: .default
|
|
59
59
|
image: ruby:2.6
|
|
60
60
|
|
|
61
61
|
script:
|
|
62
62
|
- ./gitlab-ci/rspec.sh
|
|
63
63
|
|
|
64
|
+
ruby2.7:rspec:
|
|
65
|
+
extends: .default
|
|
66
|
+
image: ruby:2.7
|
|
67
|
+
|
|
68
|
+
script:
|
|
69
|
+
- ./gitlab-ci/rspec.sh
|
|
70
|
+
|
|
71
|
+
ruby3.0:rspec:
|
|
72
|
+
extends: .default
|
|
73
|
+
image: ruby:3.0
|
|
74
|
+
|
|
75
|
+
script:
|
|
76
|
+
- ./gitlab-ci/rspec.sh
|
|
77
|
+
|
|
64
78
|
rubocop:
|
|
65
|
-
|
|
79
|
+
extends: .default
|
|
66
80
|
image: ruby
|
|
67
81
|
|
|
68
82
|
script:
|
|
@@ -71,7 +85,7 @@ rubocop:
|
|
|
71
85
|
allow_failure: true
|
|
72
86
|
|
|
73
87
|
pages:
|
|
74
|
-
|
|
88
|
+
extends: .default
|
|
75
89
|
image: ruby
|
|
76
90
|
|
|
77
91
|
stage: deploy
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## Unreleased
|
|
2
|
-
[full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v1.0.
|
|
2
|
+
[full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v1.0.3...master)
|
|
3
|
+
|
|
4
|
+
## v1.0.3
|
|
5
|
+
[full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v1.0.2...v1.0.3)
|
|
6
|
+
|
|
7
|
+
### Bugfix
|
|
8
|
+
* Bugfixed. 404 Not Found error when contains other repo's merge commit [!43](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/43) *@sue445*
|
|
9
|
+
|
|
10
|
+
### Others
|
|
11
|
+
* CI against ruby 2.7 [!41](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/41) *@sue445*
|
|
12
|
+
* CI against for Ruby 3.0 [!42](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/42) *@sue445*
|
|
3
13
|
|
|
4
14
|
## v1.0.2
|
|
5
15
|
[full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v1.0.1...v1.0.2)
|
data/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Generate changelog from tags and MergeRequests on [GitLab](https://about.gitlab.com/)
|
|
3
3
|
|
|
4
4
|
[](https://badge.fury.io/rb/gitlab_awesome_release)
|
|
5
|
+
[](https://gitlab.com/sue445/gitlab_awesome_release/commits/master)
|
|
6
|
+
[](https://gitlab.com/sue445/gitlab_awesome_release/commits/master)
|
|
5
7
|
|
|
6
8
|
This is inspired by [GitHub Changelog Generator](https://github.com/skywinder/github-changelog-generator)
|
|
7
9
|
|
data/gitlab-ci/setup.sh
CHANGED
|
@@ -134,6 +134,17 @@ module GitlabAwesomeRelease
|
|
|
134
134
|
@logger.info "Add [#{label}] to !#{mr.iid} #{mr.title}"
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
+
def merge_requests_summary_between(from, to)
|
|
138
|
+
mr_iids = merge_request_iids_between(from, to)
|
|
139
|
+
mr_iids.each_with_object("") do |iid, str|
|
|
140
|
+
begin
|
|
141
|
+
str << merge_request_summary(iid) + "\n"
|
|
142
|
+
rescue Gitlab::Error::NotFound # rubocop:disable Lint/HandleExceptions
|
|
143
|
+
# NOTE: suppress error (e.g. other repo's iid)
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
137
148
|
private
|
|
138
149
|
|
|
139
150
|
# @yield [params] paging block
|
|
@@ -149,12 +160,5 @@ module GitlabAwesomeRelease
|
|
|
149
160
|
page += 1
|
|
150
161
|
end
|
|
151
162
|
end
|
|
152
|
-
|
|
153
|
-
def merge_requests_summary_between(from, to)
|
|
154
|
-
mr_iids = merge_request_iids_between(from, to)
|
|
155
|
-
mr_iids.each_with_object("") do |iid, str|
|
|
156
|
-
str << merge_request_summary(iid) + "\n"
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
163
|
end
|
|
160
164
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab_awesome_release
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dotenv
|
|
@@ -229,7 +229,7 @@ homepage: https://gitlab.com/sue445/gitlab_awesome_release
|
|
|
229
229
|
licenses:
|
|
230
230
|
- MIT
|
|
231
231
|
metadata: {}
|
|
232
|
-
post_install_message:
|
|
232
|
+
post_install_message:
|
|
233
233
|
rdoc_options: []
|
|
234
234
|
require_paths:
|
|
235
235
|
- lib
|
|
@@ -244,9 +244,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
244
244
|
- !ruby/object:Gem::Version
|
|
245
245
|
version: '0'
|
|
246
246
|
requirements: []
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
signing_key:
|
|
247
|
+
rubygems_version: 3.1.4
|
|
248
|
+
signing_key:
|
|
250
249
|
specification_version: 4
|
|
251
250
|
summary: Generate changelog from tags and MergeRequests on GitLab
|
|
252
251
|
test_files: []
|