gitlab_awesome_release 1.0.2 → 1.0.3

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: b06b0641e64b18b73964532ea9201f3359715cf553b84b7fdb915caa11014933
4
- data.tar.gz: a331a212b6766a929451480b37f94ea236daf6c5934008fd0566926ecf65a032
3
+ metadata.gz: cc883b30e29624a6142a294bbc9bb6b34c9b6bc08d0a91ce5447729659ba0bdb
4
+ data.tar.gz: d71375698195d481dcddbd7b380f067d2e45a7957d1e1d23311ca42ff90231a2
5
5
  SHA512:
6
- metadata.gz: 7959d224ef36b6b836dacbbe2eff226ff5a7849f9568b482b9b379a978168ae80a2c1d00e04ca8d43e570d88efddabdeba1a7c647d1b40929b9db4b43e29a71f
7
- data.tar.gz: 46420eb0ce8ad46621a0e213dc2fbfee6663d304e3b78fa10d966bd2031823d32237836df9e28959a4cecf617a0d2ad417a54e7a9463da35edc1a3a731499435
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
- .job_template: &job_definition
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
- <<: *job_definition
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
- <<: *job_definition
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
- <<: *job_definition
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
- <<: *job_definition
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
- <<: *job_definition
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
- <<: *job_definition
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
- <<: *job_definition
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
- <<: *job_definition
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...HEAD)
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
  [![Gem Version](https://badge.fury.io/rb/gitlab_awesome_release.svg)](https://badge.fury.io/rb/gitlab_awesome_release)
5
+ [![pipeline status](https://gitlab.com/sue445/gitlab_awesome_release/badges/master/pipeline.svg)](https://gitlab.com/sue445/gitlab_awesome_release/commits/master)
6
+ [![coverage report](https://gitlab.com/sue445/gitlab_awesome_release/badges/master/coverage.svg)](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
@@ -3,5 +3,9 @@
3
3
  mkdir -p .bundle/
4
4
  cp gitlab-ci/config .bundle/
5
5
 
6
+ ruby --version
7
+ gem --version
8
+ bundle --version
9
+
6
10
  bundle check --path=${BUNDLE_CACHE} || bundle update
7
11
  bundle clean
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GitlabAwesomeRelease
2
- VERSION = "1.0.2".freeze
2
+ VERSION = "1.0.3".freeze
3
3
  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.2
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: 2018-12-30 00:00:00.000000000 Z
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
- rubyforge_project:
248
- rubygems_version: 2.7.6
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: []