gitlab_mr_release 1.1.1 → 2.0.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: 6de841c4b12ce12ed5b0d7324278798fe4177f4e7860118b2b176a4121e339f3
4
- data.tar.gz: 7f6bb8105457e098a9d875522e6be1daf93f81d4ece33eb4a3ddccaf68b387ad
3
+ metadata.gz: 5e97e096f63105635f3373ee5d7e2cde12cc6ec1d094421d8c34a7bddebb4b8d
4
+ data.tar.gz: 71efeaeff03b3616924a5a40ee15965857632a79c1da1c7cfe3f9acfb16f472e
5
5
  SHA512:
6
- metadata.gz: 8faf002ea5e45facaebf255b61aea94ab130334f7135c91e9ee4521e7bd99926810d8c37db0a6e04fe3345d6f92e7425e3289fd0c11a9e935dd5cfd07e8c17f9
7
- data.tar.gz: 9c6ca29b8bd2e8dce4c7160231cd6c118a3465d78135e41ec560c5f059ac4fb3010c55db5d6f38b31069311326a333f2901ab8cc950b839f00a863037a9e01c5
6
+ metadata.gz: 17f9410d3ef01763ef7feba7502852bda8b38ade33f64fcfc55e9a34b75c6246f14e9814dc5f7e516f8a2bd7e1521e81e478ae4e5e4139e9164ef21849c237fb
7
+ data.tar.gz: e6d05c1e7139d0e9285d0528de71e65394466aa645d3f3ba06e05aabcf2b3d8bb1a3c954e01328e5b07d8bce757105a0cb288cf4c7b8931985e1a4e8dd968a74
@@ -0,0 +1,10 @@
1
+ # c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: github-actions
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ assignees:
10
+ - sue445
@@ -0,0 +1,59 @@
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name: Deploy static content to Pages
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches:
8
+ - master
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch:
12
+
13
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
+ permissions:
15
+ contents: read
16
+ pages: write
17
+ id-token: write
18
+
19
+ # Allow one concurrent deployment
20
+ concurrency:
21
+ group: "pages"
22
+ cancel-in-progress: true
23
+
24
+ jobs:
25
+ # Single deploy job since we're just deploying
26
+ deploy:
27
+ environment:
28
+ name: github-pages
29
+ url: ${{ steps.deployment.outputs.page_url }}
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - name: Checkout
33
+ uses: actions/checkout@v4
34
+
35
+ - uses: ruby/setup-ruby@v1
36
+ with:
37
+ ruby-version: ruby
38
+ bundler-cache: true
39
+
40
+ - run: bundle exec yard
41
+
42
+ - name: Setup Pages
43
+ uses: actions/configure-pages@v5
44
+ - name: Upload artifact
45
+ uses: actions/upload-pages-artifact@v3
46
+ with:
47
+ # Upload entire repository
48
+ path: './doc'
49
+ - name: Deploy to GitHub Pages
50
+ id: deployment
51
+ uses: actions/deploy-pages@main
52
+
53
+ - name: Slack Notification (not success)
54
+ uses: act10ns/slack@v2
55
+ if: "! success()"
56
+ continue-on-error: true
57
+ with:
58
+ status: ${{ job.status }}
59
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
@@ -12,83 +12,59 @@ on:
12
12
  schedule:
13
13
  - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
14
 
15
- env:
16
- CI: "true"
17
-
18
15
  jobs:
19
16
  test:
20
17
  runs-on: ubuntu-latest
21
18
 
22
- container: ${{ matrix.ruby }}
23
-
24
19
  strategy:
25
20
  fail-fast: false
26
21
 
27
22
  matrix:
28
23
  ruby:
29
- - ruby:2.2
30
- - ruby:2.3
31
- - ruby:2.4
32
- - ruby:2.5
33
- - ruby:2.6
34
- - ruby:2.7
35
- - rubylang/ruby:master-nightly-bionic
36
- include:
37
- - ruby: rubylang/ruby:master-nightly-bionic
38
- allow_failures: "true"
24
+ - "2.6"
25
+ - "2.7"
26
+ - "3.0"
27
+ - "3.1"
28
+ - "3.2"
29
+ - "3.3"
30
+ - "3.4"
39
31
 
40
32
  steps:
41
- - uses: actions/checkout@v2
33
+ - uses: actions/checkout@v4
42
34
 
43
- - name: Cache vendor/bundle
44
- uses: actions/cache@v1
45
- id: cache_gem
35
+ - uses: ruby/setup-ruby@v1
46
36
  with:
47
- path: vendor/bundle
48
- key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
49
- restore-keys: |
50
- v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
51
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
37
+ ruby-version: ${{ matrix.ruby }}
38
+ bundler-cache: true
52
39
 
53
- - name: bundle update
54
- run: |
55
- set -xe
56
- bundle config path vendor/bundle
57
- bundle update --jobs $(nproc) --retry 3
58
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
40
+ - run: bundle update --jobs $(nproc) --retry 3
59
41
 
60
42
  - name: Setup Code Climate Test Reporter
61
43
  uses: aktions/codeclimate-test-reporter@v1
62
44
  with:
63
45
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
64
46
  command: before-build
65
- if: matrix.ruby >= 'ruby:2.4'
66
47
  continue-on-error: true
67
48
 
68
- - name: Run test
69
- run: |
70
- set -xe
71
- bundle exec rspec
72
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
49
+ - run: bundle exec rspec
50
+ timeout-minutes: 1
73
51
 
74
52
  - name: Teardown Code Climate Test Reporter
75
53
  uses: aktions/codeclimate-test-reporter@v1
76
54
  with:
77
55
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
78
56
  command: after-build
79
- if: matrix.ruby >= 'ruby:2.4' && always()
57
+ if: always()
80
58
  continue-on-error: true
81
59
 
82
60
  - name: Slack Notification (not success)
83
- uses: homoluctus/slatify@master
61
+ uses: act10ns/slack@v2
84
62
  if: "! success()"
85
63
  continue-on-error: true
86
64
  with:
87
- job_name: ${{ format('*build* ({0})', matrix.ruby) }}
88
- type: ${{ job.status }}
89
- icon_emoji: ":octocat:"
90
- url: ${{ secrets.SLACK_WEBHOOK }}
91
- token: ${{ secrets.GITHUB_TOKEN }}
65
+ status: ${{ job.status }}
66
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
67
+ matrix: ${{ toJson(matrix) }}
92
68
 
93
69
  notify:
94
70
  needs:
@@ -98,12 +74,9 @@ jobs:
98
74
 
99
75
  steps:
100
76
  - name: Slack Notification (success)
101
- uses: homoluctus/slatify@master
77
+ uses: act10ns/slack@v2
102
78
  if: always()
103
79
  continue-on-error: true
104
80
  with:
105
- job_name: '*build*'
106
- type: ${{ job.status }}
107
- icon_emoji: ":octocat:"
108
- url: ${{ secrets.SLACK_WEBHOOK }}
109
- token: ${{ secrets.GITHUB_TOKEN }}
81
+ status: ${{ job.status }}
82
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --markup markdown
2
+ --no-private
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## Unreleased
2
- [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v1.1.1...master)
2
+ [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v2.0.0...master)
3
+
4
+ ## v2.0.0
5
+ [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v1.1.2...v2.0.0)
6
+
7
+ * Fix deprecation warning at `ERB.new` and requires Ruby 2.6+
8
+ * https://github.com/sue445/gitlab_mr_release/pull/84
9
+
10
+ ## v1.1.2
11
+ [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v1.1.1...v1.1.2)
12
+
13
+ * Enable MFA requirement for gem releasing
14
+ * https://github.com/sue445/gitlab_mr_release/pull/53
3
15
 
4
16
  ## v1.1.1
5
17
  [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v1.1.0...v1.1.1)
data/Gemfile CHANGED
@@ -3,20 +3,7 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in gitlab_mr_release.gemspec
4
4
  gemspec
5
5
 
6
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
7
- group :development do
8
- # NOTE: activesupport 5.x supports only ruby 2.2.2+
9
- gem "activesupport", "< 5.0.0", group: :test
10
- end
11
- end
12
-
13
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
14
- # NOTE: unparser v0.3.0+ requires Ruby 2.5+
15
- gem "unparser", "< 0.3.0"
16
- end
17
-
18
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
19
- # String#unpack1 is available since ruby 2.4, but gitlab gem uses String#unpack1 ...
20
- # c.f. https://github.com/NARKOZ/gitlab/commit/d9ef580#diff-84e3ba49bf244c6684f7d26a3312adc4R81
21
- gem "gitlab", "< 4.14.0"
6
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
7
+ # term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
8
+ gem "term-ansicolor", "< 1.9.0"
22
9
  end
data/README.md CHANGED
@@ -11,7 +11,7 @@ This is inspired by the [git-pr-release](https://github.com/motemen/git-pr-relea
11
11
 
12
12
  ## Requirements
13
13
 
14
- * Ruby v2.1+
14
+ * Ruby v2.6+
15
15
  * GitLab v8.17.0+
16
16
  * GitLab API v4+
17
17
 
@@ -14,6 +14,14 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/gitlab_mr_release"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.required_ruby_version = ">= 2.6.0"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = spec.homepage
21
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
22
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/gitlab_mr_release/"
23
+ spec.metadata["rubygems_mfa_required"] = "true"
24
+
17
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
26
  spec.bindir = "exe"
19
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -25,11 +33,14 @@ Gem::Specification.new do |spec|
25
33
 
26
34
  spec.add_development_dependency "activesupport"
27
35
  spec.add_development_dependency "bundler", ">= 1.10"
28
- spec.add_development_dependency "coveralls"
36
+ spec.add_development_dependency "coveralls_reborn"
37
+ spec.add_development_dependency "ostruct"
29
38
  spec.add_development_dependency "rake"
30
39
  spec.add_development_dependency "rspec"
31
40
  spec.add_development_dependency "rspec-parameterized"
32
41
  spec.add_development_dependency "simplecov"
42
+ spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
33
43
  spec.add_development_dependency "unparser", ">= 0.4.5"
34
44
  spec.add_development_dependency "webmock", ">= 3.0.0"
45
+ spec.add_development_dependency "yard"
35
46
  end
@@ -37,7 +37,7 @@ module GitlabMrRelease
37
37
 
38
38
  def generate_description(iids, template)
39
39
  merge_requests = Gitlab.merge_requests(@project_name, iids: iids)
40
- ERB.new(template, nil, "-").result(binding).strip
40
+ ERB.new(template, trim_mode: "-").result(binding).strip
41
41
  end
42
42
 
43
43
  def create_merge_request(source_branch:, target_branch:, title:, template:, labels:)
@@ -1,3 +1,3 @@
1
1
  module GitlabMrRelease
2
- VERSION = "1.1.1"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_mr_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2020-03-21 00:00:00.000000000 Z
10
+ date: 2024-12-28 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: dotenv
@@ -81,7 +80,21 @@ dependencies:
81
80
  - !ruby/object:Gem::Version
82
81
  version: '1.10'
83
82
  - !ruby/object:Gem::Dependency
84
- name: coveralls
83
+ name: coveralls_reborn
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: ostruct
85
98
  requirement: !ruby/object:Gem::Requirement
86
99
  requirements:
87
100
  - - ">="
@@ -150,6 +163,20 @@ dependencies:
150
163
  - - ">="
151
164
  - !ruby/object:Gem::Version
152
165
  version: '0'
166
+ - !ruby/object:Gem::Dependency
167
+ name: term-ansicolor
168
+ requirement: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "!="
171
+ - !ruby/object:Gem::Version
172
+ version: 1.11.1
173
+ type: :development
174
+ prerelease: false
175
+ version_requirements: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "!="
178
+ - !ruby/object:Gem::Version
179
+ version: 1.11.1
153
180
  - !ruby/object:Gem::Dependency
154
181
  name: unparser
155
182
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +205,20 @@ dependencies:
178
205
  - - ">="
179
206
  - !ruby/object:Gem::Version
180
207
  version: 3.0.0
208
+ - !ruby/object:Gem::Dependency
209
+ name: yard
210
+ requirement: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
215
+ type: :development
216
+ prerelease: false
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
181
222
  description: Release MergeRequest generator for GitLab
182
223
  email:
183
224
  - sue445@sue445.net
@@ -188,9 +229,12 @@ extra_rdoc_files: []
188
229
  files:
189
230
  - ".coveralls.yml"
190
231
  - ".env.gitlab.example"
232
+ - ".github/dependabot.yml"
233
+ - ".github/workflows/pages.yml"
191
234
  - ".github/workflows/test.yml"
192
235
  - ".gitignore"
193
236
  - ".rspec"
237
+ - ".yardopts"
194
238
  - CHANGELOG.md
195
239
  - Gemfile
196
240
  - LICENSE.txt
@@ -210,8 +254,12 @@ files:
210
254
  homepage: https://github.com/sue445/gitlab_mr_release
211
255
  licenses:
212
256
  - MIT
213
- metadata: {}
214
- post_install_message:
257
+ metadata:
258
+ homepage_uri: https://github.com/sue445/gitlab_mr_release
259
+ source_code_uri: https://github.com/sue445/gitlab_mr_release
260
+ changelog_uri: https://github.com/sue445/gitlab_mr_release/blob/master/CHANGELOG.md
261
+ documentation_uri: https://sue445.github.io/gitlab_mr_release/
262
+ rubygems_mfa_required: 'true'
215
263
  rdoc_options: []
216
264
  require_paths:
217
265
  - lib
@@ -219,15 +267,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
267
  requirements:
220
268
  - - ">="
221
269
  - !ruby/object:Gem::Version
222
- version: '0'
270
+ version: 2.6.0
223
271
  required_rubygems_version: !ruby/object:Gem::Requirement
224
272
  requirements:
225
273
  - - ">="
226
274
  - !ruby/object:Gem::Version
227
275
  version: '0'
228
276
  requirements: []
229
- rubygems_version: 3.1.2
230
- signing_key:
277
+ rubygems_version: 3.6.2
231
278
  specification_version: 4
232
279
  summary: Release MergeRequest generator for GitLab
233
280
  test_files: []