gitlab_mr_release 1.1.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/pages.yml +59 -0
- data/.github/workflows/test.yml +21 -47
- data/.yardopts +2 -0
- data/CHANGELOG.md +7 -1
- data/Gemfile +3 -21
- data/README.md +1 -1
- data/gitlab_mr_release.gemspec +7 -1
- data/lib/gitlab_mr_release/project.rb +1 -1
- data/lib/gitlab_mr_release/version.rb +1 -1
- metadata +51 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e97e096f63105635f3373ee5d7e2cde12cc6ec1d094421d8c34a7bddebb4b8d
|
4
|
+
data.tar.gz: 71efeaeff03b3616924a5a40ee15965857632a79c1da1c7cfe3f9acfb16f472e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 }}
|
data/.github/workflows/test.yml
CHANGED
@@ -16,58 +16,37 @@ jobs:
|
|
16
16
|
test:
|
17
17
|
runs-on: ubuntu-latest
|
18
18
|
|
19
|
-
container: ${{ matrix.ruby }}
|
20
|
-
|
21
19
|
strategy:
|
22
20
|
fail-fast: false
|
23
21
|
|
24
22
|
matrix:
|
25
23
|
ruby:
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
- rubylang/ruby:master-nightly-bionic
|
34
|
-
include:
|
35
|
-
- ruby: rubylang/ruby:master-nightly-bionic
|
36
|
-
allow_failures: "true"
|
24
|
+
- "2.6"
|
25
|
+
- "2.7"
|
26
|
+
- "3.0"
|
27
|
+
- "3.1"
|
28
|
+
- "3.2"
|
29
|
+
- "3.3"
|
30
|
+
- "3.4"
|
37
31
|
|
38
32
|
steps:
|
39
|
-
- uses: actions/checkout@
|
33
|
+
- uses: actions/checkout@v4
|
40
34
|
|
41
|
-
-
|
42
|
-
uses: actions/cache@v1
|
43
|
-
id: cache_gem
|
35
|
+
- uses: ruby/setup-ruby@v1
|
44
36
|
with:
|
45
|
-
|
46
|
-
|
47
|
-
restore-keys: |
|
48
|
-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
49
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
37
|
+
ruby-version: ${{ matrix.ruby }}
|
38
|
+
bundler-cache: true
|
50
39
|
|
51
|
-
-
|
52
|
-
run: |
|
53
|
-
set -xe
|
54
|
-
bundle config path vendor/bundle
|
55
|
-
bundle update --jobs $(nproc) --retry 3
|
56
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
40
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
57
41
|
|
58
42
|
- name: Setup Code Climate Test Reporter
|
59
43
|
uses: aktions/codeclimate-test-reporter@v1
|
60
44
|
with:
|
61
45
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
62
46
|
command: before-build
|
63
|
-
if: matrix.ruby >= 'ruby:2.4'
|
64
47
|
continue-on-error: true
|
65
48
|
|
66
|
-
-
|
67
|
-
run: |
|
68
|
-
set -xe
|
69
|
-
bundle exec rspec
|
70
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
49
|
+
- run: bundle exec rspec
|
71
50
|
timeout-minutes: 1
|
72
51
|
|
73
52
|
- name: Teardown Code Climate Test Reporter
|
@@ -75,19 +54,17 @@ jobs:
|
|
75
54
|
with:
|
76
55
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
77
56
|
command: after-build
|
78
|
-
if:
|
57
|
+
if: always()
|
79
58
|
continue-on-error: true
|
80
59
|
|
81
60
|
- name: Slack Notification (not success)
|
82
|
-
uses:
|
61
|
+
uses: act10ns/slack@v2
|
83
62
|
if: "! success()"
|
84
63
|
continue-on-error: true
|
85
64
|
with:
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
90
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
65
|
+
status: ${{ job.status }}
|
66
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
67
|
+
matrix: ${{ toJson(matrix) }}
|
91
68
|
|
92
69
|
notify:
|
93
70
|
needs:
|
@@ -97,12 +74,9 @@ jobs:
|
|
97
74
|
|
98
75
|
steps:
|
99
76
|
- name: Slack Notification (success)
|
100
|
-
uses:
|
77
|
+
uses: act10ns/slack@v2
|
101
78
|
if: always()
|
102
79
|
continue-on-error: true
|
103
80
|
with:
|
104
|
-
|
105
|
-
|
106
|
-
icon_emoji: ":octocat:"
|
107
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
108
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
81
|
+
status: ${{ job.status }}
|
82
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## Unreleased
|
2
|
-
[full changelog](http://github.com/sue445/gitlab_mr_release/compare/
|
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
|
3
9
|
|
4
10
|
## v1.1.2
|
5
11
|
[full changelog](http://github.com/sue445/gitlab_mr_release/compare/v1.1.1...v1.1.2)
|
data/Gemfile
CHANGED
@@ -3,25 +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.
|
7
|
-
|
8
|
-
|
9
|
-
gem "activesupport", "< 5.0.0", group: :test
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
|
14
|
-
# NOTE: httparty v0.19.0+ requires Ruby 2.3+
|
15
|
-
gem "httparty", "< 0.19.0"
|
16
|
-
end
|
17
|
-
|
18
|
-
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
|
19
|
-
# NOTE: unparser v0.3.0+ requires Ruby 2.5+
|
20
|
-
gem "unparser", "< 0.3.0"
|
21
|
-
end
|
22
|
-
|
23
|
-
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
|
24
|
-
# String#unpack1 is available since ruby 2.4, but gitlab gem uses String#unpack1 ...
|
25
|
-
# c.f. https://github.com/NARKOZ/gitlab/commit/d9ef580#diff-84e3ba49bf244c6684f7d26a3312adc4R81
|
26
|
-
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"
|
27
9
|
end
|
data/README.md
CHANGED
data/gitlab_mr_release.gemspec
CHANGED
@@ -14,9 +14,12 @@ 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
|
+
|
17
19
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
20
|
spec.metadata["source_code_uri"] = spec.homepage
|
19
21
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
22
|
+
spec.metadata["documentation_uri"] = "https://sue445.github.io/gitlab_mr_release/"
|
20
23
|
spec.metadata["rubygems_mfa_required"] = "true"
|
21
24
|
|
22
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -30,11 +33,14 @@ Gem::Specification.new do |spec|
|
|
30
33
|
|
31
34
|
spec.add_development_dependency "activesupport"
|
32
35
|
spec.add_development_dependency "bundler", ">= 1.10"
|
33
|
-
spec.add_development_dependency "
|
36
|
+
spec.add_development_dependency "coveralls_reborn"
|
37
|
+
spec.add_development_dependency "ostruct"
|
34
38
|
spec.add_development_dependency "rake"
|
35
39
|
spec.add_development_dependency "rspec"
|
36
40
|
spec.add_development_dependency "rspec-parameterized"
|
37
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
|
38
43
|
spec.add_development_dependency "unparser", ">= 0.4.5"
|
39
44
|
spec.add_development_dependency "webmock", ">= 3.0.0"
|
45
|
+
spec.add_development_dependency "yard"
|
40
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,
|
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:)
|
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:
|
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:
|
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:
|
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
|
@@ -214,8 +258,8 @@ metadata:
|
|
214
258
|
homepage_uri: https://github.com/sue445/gitlab_mr_release
|
215
259
|
source_code_uri: https://github.com/sue445/gitlab_mr_release
|
216
260
|
changelog_uri: https://github.com/sue445/gitlab_mr_release/blob/master/CHANGELOG.md
|
261
|
+
documentation_uri: https://sue445.github.io/gitlab_mr_release/
|
217
262
|
rubygems_mfa_required: 'true'
|
218
|
-
post_install_message:
|
219
263
|
rdoc_options: []
|
220
264
|
require_paths:
|
221
265
|
- lib
|
@@ -223,15 +267,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
267
|
requirements:
|
224
268
|
- - ">="
|
225
269
|
- !ruby/object:Gem::Version
|
226
|
-
version:
|
270
|
+
version: 2.6.0
|
227
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
272
|
requirements:
|
229
273
|
- - ">="
|
230
274
|
- !ruby/object:Gem::Version
|
231
275
|
version: '0'
|
232
276
|
requirements: []
|
233
|
-
rubygems_version: 3.2
|
234
|
-
signing_key:
|
277
|
+
rubygems_version: 3.6.2
|
235
278
|
specification_version: 4
|
236
279
|
summary: Release MergeRequest generator for GitLab
|
237
280
|
test_files: []
|