gitlab_mr_release 2.0.0 → 2.0.2
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/.github/dependabot.yml +11 -1
- data/.github/release.yml +31 -0
- data/.github/workflows/dependabot-manager.yml +28 -0
- data/.github/workflows/pages.yml +4 -45
- data/.github/workflows/release_gem.yml +14 -0
- data/.github/workflows/test.yml +43 -26
- data/CHANGELOG.md +13 -1
- data/README.md +2 -2
- data/gitlab_mr_release.gemspec +1 -2
- data/lib/gitlab_mr_release/version.rb +1 -1
- metadata +9 -21
- data/.coveralls.yml +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97b3d1b7780b96dbffc0a699789d9a940474feacfe703da09029f3061ef6f66d
|
|
4
|
+
data.tar.gz: cb0fa852fb7339c58ff2290ef1bb399acfcda425aaff71772506ce9e1f9389a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30e7d03f7eef971ccb8b56723368ae36f9f6a2f000fcca62147b84a8ee8de82d409de971ead4e8a717c8355e14d0781abc9335522dff237867b56b58bd8fae83
|
|
7
|
+
data.tar.gz: '08250cc63d4ff7c822c53918b819e03b9e49c12769d7ed1a3c19187754ce9af5d5d720cba78f7f5f8eab2e76c81b6f2f0c6d4234556a2e44b7401b715366b78f'
|
data/.github/dependabot.yml
CHANGED
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
version: 2
|
|
3
3
|
|
|
4
4
|
updates:
|
|
5
|
+
###########################################################
|
|
6
|
+
# NOTE: following sections are auto generated. DO NOT EDIT!
|
|
7
|
+
###########################################################
|
|
5
8
|
- package-ecosystem: github-actions
|
|
6
9
|
directory: /
|
|
7
10
|
schedule:
|
|
8
|
-
interval:
|
|
11
|
+
interval: monthly
|
|
12
|
+
time: "05:00"
|
|
13
|
+
timezone: Asia/Tokyo
|
|
9
14
|
assignees:
|
|
10
15
|
- sue445
|
|
16
|
+
cooldown:
|
|
17
|
+
default-days: 7
|
|
18
|
+
exclude:
|
|
19
|
+
- ruby/setup-ruby
|
|
20
|
+
###########################################################
|
data/.github/release.yml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ref. https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
|
|
2
|
+
|
|
3
|
+
changelog:
|
|
4
|
+
exclude:
|
|
5
|
+
labels:
|
|
6
|
+
- chore
|
|
7
|
+
|
|
8
|
+
categories:
|
|
9
|
+
- title: ":bomb: Breaking Changes"
|
|
10
|
+
labels:
|
|
11
|
+
- breaking change
|
|
12
|
+
|
|
13
|
+
- title: ":lock: Security Fix"
|
|
14
|
+
labels:
|
|
15
|
+
- security
|
|
16
|
+
|
|
17
|
+
- title: ":rocket: Features"
|
|
18
|
+
labels:
|
|
19
|
+
- enhancement
|
|
20
|
+
|
|
21
|
+
- title: ":bug: Bug Fixes"
|
|
22
|
+
labels:
|
|
23
|
+
- bug
|
|
24
|
+
|
|
25
|
+
- title: ":dependabot: Dependency updates"
|
|
26
|
+
labels:
|
|
27
|
+
- dependencies
|
|
28
|
+
|
|
29
|
+
- title: ":pencil: Other Changes"
|
|
30
|
+
labels:
|
|
31
|
+
- "*"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: dependabot-manager
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- synchronize # PR branch is rebased
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
dependabot-auto-merge:
|
|
11
|
+
uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
|
|
12
|
+
with:
|
|
13
|
+
repo-name: sue445/gitlab_mr_release
|
|
14
|
+
secrets:
|
|
15
|
+
# TODO: Set secrets to Dependabot secrets
|
|
16
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
|
17
|
+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
19
|
+
|
|
20
|
+
dependabot-security-alert:
|
|
21
|
+
uses: sue445/workflows/.github/workflows/dependabot-security-alert.yml@main
|
|
22
|
+
with:
|
|
23
|
+
repo-name: sue445/gitlab_mr_release
|
|
24
|
+
secrets:
|
|
25
|
+
# TODO: Set secrets to Dependabot secrets
|
|
26
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
|
27
|
+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
28
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
data/.github/workflows/pages.yml
CHANGED
|
@@ -1,59 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
name: Deploy static content to Pages
|
|
1
|
+
name: Deploy yard to Pages
|
|
3
2
|
|
|
4
3
|
on:
|
|
5
|
-
# Runs on pushes targeting the default branch
|
|
6
4
|
push:
|
|
7
5
|
branches:
|
|
8
6
|
- master
|
|
9
|
-
|
|
10
|
-
# Allows you to run this workflow manually from the Actions tab
|
|
11
7
|
workflow_dispatch:
|
|
12
8
|
|
|
13
|
-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
14
9
|
permissions:
|
|
15
10
|
contents: read
|
|
16
11
|
pages: write
|
|
17
12
|
id-token: write
|
|
18
13
|
|
|
19
|
-
# Allow one concurrent deployment
|
|
20
|
-
concurrency:
|
|
21
|
-
group: "pages"
|
|
22
|
-
cancel-in-progress: true
|
|
23
|
-
|
|
24
14
|
jobs:
|
|
25
|
-
# Single deploy job since we're just deploying
|
|
26
15
|
deploy:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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 }}
|
|
16
|
+
uses: sue445/workflows/.github/workflows/pages-yard.yml@main
|
|
17
|
+
secrets:
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
uses: sue445/workflows/.github/workflows/release_gem.yml@main
|
|
9
|
+
with:
|
|
10
|
+
repo-name: sue445/gitlab_mr_release
|
|
11
|
+
gem-name: gitlab_mr_release
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
id-token: write
|
data/.github/workflows/test.yml
CHANGED
|
@@ -28,37 +28,23 @@ jobs:
|
|
|
28
28
|
- "3.2"
|
|
29
29
|
- "3.3"
|
|
30
30
|
- "3.4"
|
|
31
|
+
- "4.0"
|
|
31
32
|
|
|
32
33
|
steps:
|
|
33
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
34
35
|
|
|
35
|
-
- uses: ruby/setup-ruby@v1
|
|
36
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
36
37
|
with:
|
|
37
38
|
ruby-version: ${{ matrix.ruby }}
|
|
38
39
|
bundler-cache: true
|
|
39
40
|
|
|
40
|
-
- run: bundle update --jobs $(nproc) --retry 3
|
|
41
|
-
|
|
42
|
-
- name: Setup Code Climate Test Reporter
|
|
43
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
44
|
-
with:
|
|
45
|
-
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
46
|
-
command: before-build
|
|
47
|
-
continue-on-error: true
|
|
41
|
+
- run: bundle update --all --jobs $(nproc) --retry 3
|
|
48
42
|
|
|
49
43
|
- run: bundle exec rspec
|
|
50
44
|
timeout-minutes: 1
|
|
51
45
|
|
|
52
|
-
- name: Teardown Code Climate Test Reporter
|
|
53
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
54
|
-
with:
|
|
55
|
-
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
56
|
-
command: after-build
|
|
57
|
-
if: always()
|
|
58
|
-
continue-on-error: true
|
|
59
|
-
|
|
60
46
|
- name: Slack Notification (not success)
|
|
61
|
-
uses: act10ns/slack@v2
|
|
47
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
62
48
|
if: "! success()"
|
|
63
49
|
continue-on-error: true
|
|
64
50
|
with:
|
|
@@ -66,17 +52,48 @@ jobs:
|
|
|
66
52
|
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
67
53
|
matrix: ${{ toJson(matrix) }}
|
|
68
54
|
|
|
69
|
-
|
|
70
|
-
needs:
|
|
71
|
-
- test
|
|
72
|
-
|
|
55
|
+
yard:
|
|
73
56
|
runs-on: ubuntu-latest
|
|
74
57
|
|
|
75
58
|
steps:
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
59
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
60
|
+
|
|
61
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
62
|
+
with:
|
|
63
|
+
ruby-version: ruby
|
|
64
|
+
bundler-cache: true
|
|
65
|
+
|
|
66
|
+
- name: bundle update
|
|
67
|
+
run: |
|
|
68
|
+
set -xe
|
|
69
|
+
bundle config path vendor/bundle
|
|
70
|
+
bundle update --all --jobs $(nproc) --retry 3
|
|
71
|
+
|
|
72
|
+
- name: yard generating test
|
|
73
|
+
run: |
|
|
74
|
+
set -xe
|
|
75
|
+
bundle exec yard
|
|
76
|
+
ls -ld doc/
|
|
77
|
+
|
|
78
|
+
- name: Slack Notification (not success)
|
|
79
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
80
|
+
if: "! success()"
|
|
79
81
|
continue-on-error: true
|
|
80
82
|
with:
|
|
81
83
|
status: ${{ job.status }}
|
|
82
84
|
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
85
|
+
|
|
86
|
+
all-pass:
|
|
87
|
+
if: always()
|
|
88
|
+
|
|
89
|
+
needs:
|
|
90
|
+
- test
|
|
91
|
+
- yard
|
|
92
|
+
|
|
93
|
+
runs-on: ubuntu-slim
|
|
94
|
+
|
|
95
|
+
steps:
|
|
96
|
+
- name: check dependent jobs
|
|
97
|
+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
|
|
98
|
+
with:
|
|
99
|
+
jobs: ${{ toJSON(needs) }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
## Unreleased
|
|
2
|
-
[full changelog](http://github.com/sue445/gitlab_mr_release/compare/v2.0.
|
|
2
|
+
[full changelog](http://github.com/sue445/gitlab_mr_release/compare/v2.0.2...master)
|
|
3
|
+
|
|
4
|
+
## [v2.0.2](https://github.com/sue445/gitlab_mr_release/releases/tag/v2.0.2)
|
|
5
|
+
[full changelog](http://github.com/sue445/gitlab_mr_release/compare/v2.0.1...v2.0.2)
|
|
6
|
+
|
|
7
|
+
* Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
|
|
8
|
+
* https://github.com/sue445/gitlab_mr_release/pull/131
|
|
9
|
+
|
|
10
|
+
## [v2.0.1](https://github.com/sue445/gitlab_mr_release/releases/tag/v2.0.1)
|
|
11
|
+
[full changelog](http://github.com/sue445/gitlab_mr_release/compare/v2.0.0...v2.0.1)
|
|
12
|
+
|
|
13
|
+
* Release gem from GitHub Actions
|
|
14
|
+
* https://github.com/sue445/gitlab_mr_release/pull/92
|
|
3
15
|
|
|
4
16
|
## v2.0.0
|
|
5
17
|
[full changelog](http://github.com/sue445/gitlab_mr_release/compare/v1.1.2...v2.0.0)
|
data/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Release MergeRequest generator for [GitLab](https://about.gitlab.com/)
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/gitlab_mr_release)
|
|
6
|
-
[](https://github.com/sue445/gitlab_mr_release/actions/workflows/test.yml)
|
|
7
|
+
[](https://qlty.sh/gh/sue445/projects/gitlab_mr_release)
|
|
8
8
|
[](https://coveralls.io/github/sue445/gitlab_mr_release?branch=master)
|
|
9
9
|
|
|
10
10
|
This is inspired by the [git-pr-release](https://github.com/motemen/git-pr-release)
|
data/gitlab_mr_release.gemspec
CHANGED
|
@@ -33,12 +33,11 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
|
|
34
34
|
spec.add_development_dependency "activesupport"
|
|
35
35
|
spec.add_development_dependency "bundler", ">= 1.10"
|
|
36
|
-
spec.add_development_dependency "coveralls_reborn"
|
|
37
36
|
spec.add_development_dependency "ostruct"
|
|
38
37
|
spec.add_development_dependency "rake"
|
|
38
|
+
spec.add_development_dependency "rdoc"
|
|
39
39
|
spec.add_development_dependency "rspec"
|
|
40
40
|
spec.add_development_dependency "rspec-parameterized"
|
|
41
|
-
spec.add_development_dependency "simplecov"
|
|
42
41
|
spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
43
42
|
spec.add_development_dependency "unparser", ">= 0.4.5"
|
|
44
43
|
spec.add_development_dependency "webmock", ">= 3.0.0"
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab_mr_release
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: dotenv
|
|
@@ -79,20 +79,6 @@ dependencies:
|
|
|
79
79
|
- - ">="
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
81
|
version: '1.10'
|
|
82
|
-
- !ruby/object:Gem::Dependency
|
|
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
82
|
- !ruby/object:Gem::Dependency
|
|
97
83
|
name: ostruct
|
|
98
84
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -122,7 +108,7 @@ dependencies:
|
|
|
122
108
|
- !ruby/object:Gem::Version
|
|
123
109
|
version: '0'
|
|
124
110
|
- !ruby/object:Gem::Dependency
|
|
125
|
-
name:
|
|
111
|
+
name: rdoc
|
|
126
112
|
requirement: !ruby/object:Gem::Requirement
|
|
127
113
|
requirements:
|
|
128
114
|
- - ">="
|
|
@@ -136,7 +122,7 @@ dependencies:
|
|
|
136
122
|
- !ruby/object:Gem::Version
|
|
137
123
|
version: '0'
|
|
138
124
|
- !ruby/object:Gem::Dependency
|
|
139
|
-
name: rspec
|
|
125
|
+
name: rspec
|
|
140
126
|
requirement: !ruby/object:Gem::Requirement
|
|
141
127
|
requirements:
|
|
142
128
|
- - ">="
|
|
@@ -150,7 +136,7 @@ dependencies:
|
|
|
150
136
|
- !ruby/object:Gem::Version
|
|
151
137
|
version: '0'
|
|
152
138
|
- !ruby/object:Gem::Dependency
|
|
153
|
-
name:
|
|
139
|
+
name: rspec-parameterized
|
|
154
140
|
requirement: !ruby/object:Gem::Requirement
|
|
155
141
|
requirements:
|
|
156
142
|
- - ">="
|
|
@@ -227,10 +213,12 @@ executables:
|
|
|
227
213
|
extensions: []
|
|
228
214
|
extra_rdoc_files: []
|
|
229
215
|
files:
|
|
230
|
-
- ".coveralls.yml"
|
|
231
216
|
- ".env.gitlab.example"
|
|
232
217
|
- ".github/dependabot.yml"
|
|
218
|
+
- ".github/release.yml"
|
|
219
|
+
- ".github/workflows/dependabot-manager.yml"
|
|
233
220
|
- ".github/workflows/pages.yml"
|
|
221
|
+
- ".github/workflows/release_gem.yml"
|
|
234
222
|
- ".github/workflows/test.yml"
|
|
235
223
|
- ".gitignore"
|
|
236
224
|
- ".rspec"
|
|
@@ -274,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
274
262
|
- !ruby/object:Gem::Version
|
|
275
263
|
version: '0'
|
|
276
264
|
requirements: []
|
|
277
|
-
rubygems_version:
|
|
265
|
+
rubygems_version: 4.0.16
|
|
278
266
|
specification_version: 4
|
|
279
267
|
summary: Release MergeRequest generator for GitLab
|
|
280
268
|
test_files: []
|
data/.coveralls.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
repo_token: pA8VrMwrNTyChkaDFsIF08GmfC4a0jIz2
|