git-pr-release 2.2.0 → 2.3.0
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/workflows/test.yml +11 -10
- data/CHANGELOG.md +13 -0
- data/README.md +22 -12
- data/git-pr-release.gemspec +2 -1
- data/lib/git/pr/release/pull_request.rb +9 -1
- data/lib/git/pr/release/util.rb +1 -1
- data/spec/fixtures/file/pr_7.yml +404 -0
- data/spec/git/pr/release/pull_request_spec.rb +56 -0
- data/spec/git/pr/release_spec.rb +20 -0
- metadata +21 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17e56434b26daa007a68481f6c125c523c3c2287ce04a3884aa1fd92b3e0f6a2
|
|
4
|
+
data.tar.gz: 345da41250aa2f0d723c9cf4f7ee21ad275a41fb45ee217c5e69e4c365e62056
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62394388288ad25af3050f77b036e1c043865c618354f29e7ae00ddad95baf902cbf49b512c581fba3ea122694209de444689baaecf54b11e29bd3f5027dd07c
|
|
7
|
+
data.tar.gz: d9aad0d322c38cd485d9f31366076789861d7b79980c68832318a209baa2ac068dbdd2d5f185a90682afcb3a644b8b8af09add2c114d41a0f38952c30181860e
|
data/.github/workflows/test.yml
CHANGED
|
@@ -11,23 +11,24 @@ on:
|
|
|
11
11
|
jobs:
|
|
12
12
|
test:
|
|
13
13
|
runs-on: ubuntu-latest
|
|
14
|
-
container: ${{ matrix.ruby }}
|
|
15
14
|
strategy:
|
|
16
15
|
fail-fast: false
|
|
17
16
|
matrix:
|
|
18
17
|
ruby:
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
- ruby: rubylang/ruby:master-nightly-bionic
|
|
25
|
-
allow_failures: "true"
|
|
18
|
+
- "3.1"
|
|
19
|
+
- "3.2"
|
|
20
|
+
- "3.3"
|
|
21
|
+
- "3.4"
|
|
22
|
+
- head
|
|
26
23
|
|
|
27
24
|
steps:
|
|
28
|
-
- uses: actions/checkout@
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: ruby/setup-ruby@v1
|
|
27
|
+
with:
|
|
28
|
+
ruby-version: ${{ matrix.ruby }}
|
|
29
|
+
bundler-cache: true
|
|
29
30
|
- name: Cache vendor/bundle
|
|
30
|
-
uses: actions/cache@
|
|
31
|
+
uses: actions/cache@v4
|
|
31
32
|
with:
|
|
32
33
|
path: vendor/bundle
|
|
33
34
|
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# git-pr-release
|
|
2
2
|
|
|
3
|
+
## v2.3.0 (2025-12-15)
|
|
4
|
+
|
|
5
|
+
[full changelog](https://github.com/x-motemen/git-pr-release/compare/v2.2.0...v2.3.0)
|
|
6
|
+
|
|
7
|
+
* (#108) Support multiple PR assignees (@toshimaru)
|
|
8
|
+
* (#107) Update CI matrix (@onk)
|
|
9
|
+
* (#106) Use setup-ruby instead of container-based setup (@onk)
|
|
10
|
+
* (#100) Allow big bang release PR (@secobaka)
|
|
11
|
+
* (#95) Bump actions/cache from v2 to v4 (@ytkg)
|
|
12
|
+
* (#94) Bump actions/checkout from v2 to v4 (@ytkg)
|
|
13
|
+
* (#91) Test against Ruby v3.1 and Ruby v3.2 (@toshimaru)
|
|
14
|
+
* (#90) updated docs to include --squashed flag (@petercorrea)
|
|
15
|
+
|
|
3
16
|
## v2.2.0 (2022-08-17)
|
|
4
17
|
|
|
5
18
|
[full changelog](https://github.com/x-motemen/git-pr-release/compare/v2.1.2...v2.2.0)
|
data/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
git-pr-release <a href="http://badge.fury.io/rb/git-pr-release"><img src="https://badge.fury.io/rb/git-pr-release@2x.png" alt="Gem Version" height="18"></a>
|
|
2
|
-
==============
|
|
1
|
+
# git-pr-release <a href="http://badge.fury.io/rb/git-pr-release"><img src="https://badge.fury.io/rb/git-pr-release@2x.png" alt="Gem Version" height="18"></a>
|
|
3
2
|
|
|
4
3
|
Creates a "release pull request", whose body consists of features list or
|
|
5
4
|
pull requests that are to be released into production. It's especially useful for QA and
|
|
@@ -11,13 +10,26 @@ pull request.
|
|
|
11
10
|
|
|
12
11
|
Suitable for branching strategy like below (similar to git-flow):
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
- Feature branches are first merged into "staging" (or release, development)
|
|
14
|
+
branch.
|
|
15
|
+
- Then the staging branch is merged into "production" branch, which is for
|
|
16
|
+
production release.
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
`git-pr-release`: default
|
|
21
|
+
|
|
22
|
+
`git-pr-release --squashed`: include PRs containing squashed commits.
|
|
23
|
+
|
|
24
|
+
`git-pr-release --overwrite-description`: generate a fresh PR description.
|
|
25
|
+
|
|
26
|
+
`git-pr-release -n` | `git-pr-release --dry-run`: perform a dry run; does not update PR.
|
|
27
|
+
|
|
28
|
+
`git-pr-release --no-fetch`: Do not fetch from remote repo before determining target PRs (CI friendly).
|
|
29
|
+
|
|
30
|
+
`git-pr-release --json`: Show data of target PRs in JSON format.
|
|
31
|
+
|
|
32
|
+
## Configuration
|
|
21
33
|
|
|
22
34
|
All configuration are taken using `git config`. You can write these variables
|
|
23
35
|
in file `.git-pr-release` (instead of `.git/config` or `~/.gitconfig`) to share project-wise configuration to other
|
|
@@ -95,14 +107,12 @@ You can specify this value by `GIT_PR_RELEASE_SSL_NO_VERIFY` to `1`.
|
|
|
95
107
|
|
|
96
108
|
If not specified, verify SSL certificate always.
|
|
97
109
|
|
|
98
|
-
Errors and exit statuses
|
|
99
|
-
------------------------
|
|
110
|
+
## Errors and exit statuses
|
|
100
111
|
|
|
101
112
|
### No pull requests to be released
|
|
102
113
|
|
|
103
114
|
exit status is 1.
|
|
104
115
|
|
|
105
|
-
Author
|
|
106
|
-
------
|
|
116
|
+
## Author
|
|
107
117
|
|
|
108
118
|
motemen <motemen@gmail.com>, original in-house version written by @hitode909.
|
data/git-pr-release.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "git-pr-release"
|
|
7
|
-
spec.version = '2.
|
|
7
|
+
spec.version = '2.3.0'
|
|
8
8
|
spec.authors = ["motemen"]
|
|
9
9
|
spec.email = ["motemen@gmail.com"]
|
|
10
10
|
spec.summary = 'Creates a release pull request'
|
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
spec.add_dependency 'colorize'
|
|
23
23
|
spec.add_dependency 'diff-lcs'
|
|
24
24
|
|
|
25
|
+
spec.add_development_dependency 'rake'
|
|
25
26
|
spec.add_development_dependency 'rspec'
|
|
26
27
|
spec.add_development_dependency 'timecop'
|
|
27
28
|
spec.add_development_dependency 'webmock'
|
|
@@ -31,7 +31,15 @@ module Git
|
|
|
31
31
|
when 'author'
|
|
32
32
|
pr.user ? "@#{pr.user.login}" : nil
|
|
33
33
|
else
|
|
34
|
-
pr.
|
|
34
|
+
if pr.assignees&.any? && pr.assignees.length > 1
|
|
35
|
+
pr.assignees.map { |assignee| "@#{assignee.login}" }.join(" ")
|
|
36
|
+
elsif pr.assignee
|
|
37
|
+
"@#{pr.assignee.login}"
|
|
38
|
+
elsif pr.user
|
|
39
|
+
"@#{pr.user.login}"
|
|
40
|
+
else
|
|
41
|
+
nil
|
|
42
|
+
end
|
|
35
43
|
end
|
|
36
44
|
|
|
37
45
|
mention ? " #{mention}" : ""
|
data/lib/git/pr/release/util.rb
CHANGED
|
@@ -157,7 +157,7 @@ ERB
|
|
|
157
157
|
merged_body = pr_body_lines.join("\n")
|
|
158
158
|
check_status.each { |issue_number, check_value|
|
|
159
159
|
say "Update pull-request checkbox \##{issue_number} to #{check_value}.", :trace
|
|
160
|
-
merged_body.gsub! /^- \[ \] \##{issue_number}/, "- [#{check_value}] \##{issue_number}"
|
|
160
|
+
merged_body.gsub! /^- \[ \] \##{issue_number}\b/, "- [#{check_value}] \##{issue_number}"
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
merged_body
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
---
|
|
2
|
+
:url: https://api.github.com/repos/motemen/git-pr-release/pulls/7
|
|
3
|
+
:id: 16585507
|
|
4
|
+
:node_id: MDExOlB1bGxSZXF1ZXN0MTY1ODU1MDc=
|
|
5
|
+
:html_url: https://github.com/motemen/git-pr-release/pull/7
|
|
6
|
+
:diff_url: https://github.com/motemen/git-pr-release/pull/7.diff
|
|
7
|
+
:patch_url: https://github.com/motemen/git-pr-release/pull/7.patch
|
|
8
|
+
:issue_url: https://api.github.com/repos/motemen/git-pr-release/issues/7
|
|
9
|
+
:number: 7
|
|
10
|
+
:state: closed
|
|
11
|
+
:locked: false
|
|
12
|
+
:title: Support multiple assignees
|
|
13
|
+
:user:
|
|
14
|
+
:login: hakobe
|
|
15
|
+
:id: 6882
|
|
16
|
+
:node_id: MDQ6VXNlcjY4ODI=
|
|
17
|
+
:avatar_url: https://avatars0.githubusercontent.com/u/6882?v=4
|
|
18
|
+
:gravatar_id: ''
|
|
19
|
+
:url: https://api.github.com/users/hakobe
|
|
20
|
+
:html_url: https://github.com/hakobe
|
|
21
|
+
:followers_url: https://api.github.com/users/hakobe/followers
|
|
22
|
+
:following_url: https://api.github.com/users/hakobe/following{/other_user}
|
|
23
|
+
:gists_url: https://api.github.com/users/hakobe/gists{/gist_id}
|
|
24
|
+
:starred_url: https://api.github.com/users/hakobe/starred{/owner}{/repo}
|
|
25
|
+
:subscriptions_url: https://api.github.com/users/hakobe/subscriptions
|
|
26
|
+
:organizations_url: https://api.github.com/users/hakobe/orgs
|
|
27
|
+
:repos_url: https://api.github.com/users/hakobe/repos
|
|
28
|
+
:events_url: https://api.github.com/users/hakobe/events{/privacy}
|
|
29
|
+
:received_events_url: https://api.github.com/users/hakobe/received_events
|
|
30
|
+
:type: User
|
|
31
|
+
:site_admin: false
|
|
32
|
+
:body: 'This PR adds support for multiple assignees in git-pr-release.
|
|
33
|
+
|
|
34
|
+
'
|
|
35
|
+
:created_at: 2014-06-02 06:55:44.000000000 Z
|
|
36
|
+
:updated_at: 2014-06-21 05:22:22.000000000 Z
|
|
37
|
+
:closed_at: 2014-06-02 08:02:02.000000000 Z
|
|
38
|
+
:merged_at: 2014-06-02 08:02:02.000000000 Z
|
|
39
|
+
:merge_commit_sha: c66dfa90eed853507ae0e2876df3cb4dc7ce5286
|
|
40
|
+
:assignee:
|
|
41
|
+
:login: hakobe
|
|
42
|
+
:id: 6882
|
|
43
|
+
:node_id: MDQ6VXNlcjY4ODI=
|
|
44
|
+
:avatar_url: https://avatars0.githubusercontent.com/u/6882?v=4
|
|
45
|
+
:gravatar_id: ''
|
|
46
|
+
:url: https://api.github.com/users/hakobe
|
|
47
|
+
:html_url: https://github.com/hakobe
|
|
48
|
+
:followers_url: https://api.github.com/users/hakobe/followers
|
|
49
|
+
:following_url: https://api.github.com/users/hakobe/following{/other_user}
|
|
50
|
+
:gists_url: https://api.github.com/users/hakobe/gists{/gist_id}
|
|
51
|
+
:starred_url: https://api.github.com/users/hakobe/starred{/owner}{/repo}
|
|
52
|
+
:subscriptions_url: https://api.github.com/users/hakobe/subscriptions
|
|
53
|
+
:organizations_url: https://api.github.com/users/hakobe/orgs
|
|
54
|
+
:repos_url: https://api.github.com/users/hakobe/repos
|
|
55
|
+
:events_url: https://api.github.com/users/hakobe/events{/privacy}
|
|
56
|
+
:received_events_url: https://api.github.com/users/hakobe/received_events
|
|
57
|
+
:type: User
|
|
58
|
+
:site_admin: false
|
|
59
|
+
:assignees:
|
|
60
|
+
- :login: hakobe
|
|
61
|
+
:id: 6882
|
|
62
|
+
:node_id: MDQ6VXNlcjY4ODI=
|
|
63
|
+
:avatar_url: https://avatars0.githubusercontent.com/u/6882?v=4
|
|
64
|
+
:gravatar_id: ''
|
|
65
|
+
:url: https://api.github.com/users/hakobe
|
|
66
|
+
:html_url: https://github.com/hakobe
|
|
67
|
+
:followers_url: https://api.github.com/users/hakobe/followers
|
|
68
|
+
:following_url: https://api.github.com/users/hakobe/following{/other_user}
|
|
69
|
+
:gists_url: https://api.github.com/users/hakobe/gists{/gist_id}
|
|
70
|
+
:starred_url: https://api.github.com/users/hakobe/starred{/owner}{/repo}
|
|
71
|
+
:subscriptions_url: https://api.github.com/users/hakobe/subscriptions
|
|
72
|
+
:organizations_url: https://api.github.com/users/hakobe/orgs
|
|
73
|
+
:repos_url: https://api.github.com/users/hakobe/repos
|
|
74
|
+
:events_url: https://api.github.com/users/hakobe/events{/privacy}
|
|
75
|
+
:received_events_url: https://api.github.com/users/hakobe/received_events
|
|
76
|
+
:type: User
|
|
77
|
+
:site_admin: false
|
|
78
|
+
- :login: toshimaru
|
|
79
|
+
:id: 803398
|
|
80
|
+
:node_id: MDQ6VXNlcjgwMzM5OA==
|
|
81
|
+
:avatar_url: https://avatars.githubusercontent.com/u/803398?v=4
|
|
82
|
+
:gravatar_id: ''
|
|
83
|
+
:url: https://api.github.com/users/toshimaru
|
|
84
|
+
:html_url: https://github.com/toshimaru
|
|
85
|
+
:followers_url: https://api.github.com/users/toshimaru/followers
|
|
86
|
+
:following_url: https://api.github.com/users/toshimaru/following{/other_user}
|
|
87
|
+
:gists_url: https://api.github.com/users/toshimaru/gists{/gist_id}
|
|
88
|
+
:starred_url: https://api.github.com/users/toshimaru/starred{/owner}{/repo}
|
|
89
|
+
:subscriptions_url: https://api.github.com/users/toshimaru/subscriptions
|
|
90
|
+
:organizations_url: https://api.github.com/users/toshimaru/orgs
|
|
91
|
+
:repos_url: https://api.github.com/users/toshimaru/repos
|
|
92
|
+
:events_url: https://api.github.com/users/toshimaru/events{/privacy}
|
|
93
|
+
:received_events_url: https://api.github.com/users/toshimaru/received_events
|
|
94
|
+
:type: User
|
|
95
|
+
:site_admin: false
|
|
96
|
+
- :login: Copilot
|
|
97
|
+
:id: 198982749
|
|
98
|
+
:node_id: BOT_kgDOC9w8XQ
|
|
99
|
+
:avatar_url: https://avatars.githubusercontent.com/in/1143301?v=4
|
|
100
|
+
:gravatar_id: ''
|
|
101
|
+
:url: https://api.github.com/users/Copilot
|
|
102
|
+
:html_url: https://github.com/apps/copilot-swe-agent
|
|
103
|
+
:followers_url: https://api.github.com/users/Copilot/followers
|
|
104
|
+
:following_url: https://api.github.com/users/Copilot/following{/other_user}
|
|
105
|
+
:gists_url: https://api.github.com/users/Copilot/gists{/gist_id}
|
|
106
|
+
:starred_url: https://api.github.com/users/Copilot/starred{/owner}{/repo}
|
|
107
|
+
:subscriptions_url: https://api.github.com/users/Copilot/subscriptions
|
|
108
|
+
:organizations_url: https://api.github.com/users/Copilot/orgs
|
|
109
|
+
:repos_url: https://api.github.com/users/Copilot/repos
|
|
110
|
+
:events_url: https://api.github.com/users/Copilot/events{/privacy}
|
|
111
|
+
:received_events_url: https://api.github.com/users/Copilot/received_events
|
|
112
|
+
:type: Bot
|
|
113
|
+
:site_admin: false
|
|
114
|
+
:requested_reviewers: []
|
|
115
|
+
:requested_teams: []
|
|
116
|
+
:labels: []
|
|
117
|
+
:milestone:
|
|
118
|
+
:commits_url: https://api.github.com/repos/motemen/git-pr-release/pulls/7/commits
|
|
119
|
+
:review_comments_url: https://api.github.com/repos/motemen/git-pr-release/pulls/7/comments
|
|
120
|
+
:review_comment_url: https://api.github.com/repos/motemen/git-pr-release/pulls/comments{/number}
|
|
121
|
+
:comments_url: https://api.github.com/repos/motemen/git-pr-release/issues/7/comments
|
|
122
|
+
:statuses_url: https://api.github.com/repos/motemen/git-pr-release/statuses/67d936fb57851f85db28249e91dfa0d8ccfe530b
|
|
123
|
+
:head:
|
|
124
|
+
:label: hakobe:support-multiple-assignees
|
|
125
|
+
:ref: support-multiple-assignees
|
|
126
|
+
:sha: 67d936fb57851f85db28249e91dfa0d8ccfe530b
|
|
127
|
+
:user:
|
|
128
|
+
:login: hakobe
|
|
129
|
+
:id: 6882
|
|
130
|
+
:node_id: MDQ6VXNlcjY4ODI=
|
|
131
|
+
:avatar_url: https://avatars0.githubusercontent.com/u/6882?v=4
|
|
132
|
+
:gravatar_id: ''
|
|
133
|
+
:url: https://api.github.com/users/hakobe
|
|
134
|
+
:html_url: https://github.com/hakobe
|
|
135
|
+
:followers_url: https://api.github.com/users/hakobe/followers
|
|
136
|
+
:following_url: https://api.github.com/users/hakobe/following{/other_user}
|
|
137
|
+
:gists_url: https://api.github.com/users/hakobe/gists{/gist_id}
|
|
138
|
+
:starred_url: https://api.github.com/users/hakobe/starred{/owner}{/repo}
|
|
139
|
+
:subscriptions_url: https://api.github.com/users/hakobe/subscriptions
|
|
140
|
+
:organizations_url: https://api.github.com/users/hakobe/orgs
|
|
141
|
+
:repos_url: https://api.github.com/users/hakobe/repos
|
|
142
|
+
:events_url: https://api.github.com/users/hakobe/events{/privacy}
|
|
143
|
+
:received_events_url: https://api.github.com/users/hakobe/received_events
|
|
144
|
+
:type: User
|
|
145
|
+
:site_admin: false
|
|
146
|
+
:repo:
|
|
147
|
+
:id: 17425170
|
|
148
|
+
:node_id: MDEwOlJlcG9zaXRvcnkxNzQyNTE3MA==
|
|
149
|
+
:name: git-pr-release
|
|
150
|
+
:full_name: hakobe/git-pr-release
|
|
151
|
+
:private: false
|
|
152
|
+
:owner:
|
|
153
|
+
:login: hakobe
|
|
154
|
+
:id: 6882
|
|
155
|
+
:node_id: MDQ6VXNlcjY4ODI=
|
|
156
|
+
:avatar_url: https://avatars0.githubusercontent.com/u/6882?v=4
|
|
157
|
+
:gravatar_id: ''
|
|
158
|
+
:url: https://api.github.com/users/hakobe
|
|
159
|
+
:html_url: https://github.com/hakobe
|
|
160
|
+
:followers_url: https://api.github.com/users/hakobe/followers
|
|
161
|
+
:following_url: https://api.github.com/users/hakobe/following{/other_user}
|
|
162
|
+
:gists_url: https://api.github.com/users/hakobe/gists{/gist_id}
|
|
163
|
+
:starred_url: https://api.github.com/users/hakobe/starred{/owner}{/repo}
|
|
164
|
+
:subscriptions_url: https://api.github.com/users/hakobe/subscriptions
|
|
165
|
+
:organizations_url: https://api.github.com/users/hakobe/orgs
|
|
166
|
+
:repos_url: https://api.github.com/users/hakobe/repos
|
|
167
|
+
:events_url: https://api.github.com/users/hakobe/events{/privacy}
|
|
168
|
+
:received_events_url: https://api.github.com/users/hakobe/received_events
|
|
169
|
+
:type: User
|
|
170
|
+
:site_admin: false
|
|
171
|
+
:html_url: https://github.com/hakobe/git-pr-release
|
|
172
|
+
:description: Creates a pull request which summarizes feature branches that are
|
|
173
|
+
to be released into production
|
|
174
|
+
:fork: true
|
|
175
|
+
:url: https://api.github.com/repos/hakobe/git-pr-release
|
|
176
|
+
:forks_url: https://api.github.com/repos/hakobe/git-pr-release/forks
|
|
177
|
+
:keys_url: https://api.github.com/repos/hakobe/git-pr-release/keys{/key_id}
|
|
178
|
+
:collaborators_url: https://api.github.com/repos/hakobe/git-pr-release/collaborators{/collaborator}
|
|
179
|
+
:teams_url: https://api.github.com/repos/hakobe/git-pr-release/teams
|
|
180
|
+
:hooks_url: https://api.github.com/repos/hakobe/git-pr-release/hooks
|
|
181
|
+
:issue_events_url: https://api.github.com/repos/hakobe/git-pr-release/issues/events{/number}
|
|
182
|
+
:events_url: https://api.github.com/repos/hakobe/git-pr-release/events
|
|
183
|
+
:assignees_url: https://api.github.com/repos/hakobe/git-pr-release/assignees{/user}
|
|
184
|
+
:branches_url: https://api.github.com/repos/hakobe/git-pr-release/branches{/branch}
|
|
185
|
+
:tags_url: https://api.github.com/repos/hakobe/git-pr-release/tags
|
|
186
|
+
:blobs_url: https://api.github.com/repos/hakobe/git-pr-release/git/blobs{/sha}
|
|
187
|
+
:git_tags_url: https://api.github.com/repos/hakobe/git-pr-release/git/tags{/sha}
|
|
188
|
+
:git_refs_url: https://api.github.com/repos/hakobe/git-pr-release/git/refs{/sha}
|
|
189
|
+
:trees_url: https://api.github.com/repos/hakobe/git-pr-release/git/trees{/sha}
|
|
190
|
+
:statuses_url: https://api.github.com/repos/hakobe/git-pr-release/statuses/{sha}
|
|
191
|
+
:languages_url: https://api.github.com/repos/hakobe/git-pr-release/languages
|
|
192
|
+
:stargazers_url: https://api.github.com/repos/hakobe/git-pr-release/stargazers
|
|
193
|
+
:contributors_url: https://api.github.com/repos/hakobe/git-pr-release/contributors
|
|
194
|
+
:subscribers_url: https://api.github.com/repos/hakobe/git-pr-release/subscribers
|
|
195
|
+
:subscription_url: https://api.github.com/repos/hakobe/git-pr-release/subscription
|
|
196
|
+
:commits_url: https://api.github.com/repos/hakobe/git-pr-release/commits{/sha}
|
|
197
|
+
:git_commits_url: https://api.github.com/repos/hakobe/git-pr-release/git/commits{/sha}
|
|
198
|
+
:comments_url: https://api.github.com/repos/hakobe/git-pr-release/comments{/number}
|
|
199
|
+
:issue_comment_url: https://api.github.com/repos/hakobe/git-pr-release/issues/comments{/number}
|
|
200
|
+
:contents_url: https://api.github.com/repos/hakobe/git-pr-release/contents/{+path}
|
|
201
|
+
:compare_url: https://api.github.com/repos/hakobe/git-pr-release/compare/{base}...{head}
|
|
202
|
+
:merges_url: https://api.github.com/repos/hakobe/git-pr-release/merges
|
|
203
|
+
:archive_url: https://api.github.com/repos/hakobe/git-pr-release/{archive_format}{/ref}
|
|
204
|
+
:downloads_url: https://api.github.com/repos/hakobe/git-pr-release/downloads
|
|
205
|
+
:issues_url: https://api.github.com/repos/hakobe/git-pr-release/issues{/number}
|
|
206
|
+
:pulls_url: https://api.github.com/repos/hakobe/git-pr-release/pulls{/number}
|
|
207
|
+
:milestones_url: https://api.github.com/repos/hakobe/git-pr-release/milestones{/number}
|
|
208
|
+
:notifications_url: https://api.github.com/repos/hakobe/git-pr-release/notifications{?since,all,participating}
|
|
209
|
+
:labels_url: https://api.github.com/repos/hakobe/git-pr-release/labels{/name}
|
|
210
|
+
:releases_url: https://api.github.com/repos/hakobe/git-pr-release/releases{/id}
|
|
211
|
+
:deployments_url: https://api.github.com/repos/hakobe/git-pr-release/deployments
|
|
212
|
+
:created_at: 2014-03-05 02:20:59.000000000 Z
|
|
213
|
+
:updated_at: 2014-05-13 01:42:58.000000000 Z
|
|
214
|
+
:pushed_at: 2014-05-12 11:42:34.000000000 Z
|
|
215
|
+
:git_url: git://github.com/hakobe/git-pr-release.git
|
|
216
|
+
:ssh_url: git@github.com:hakobe/git-pr-release.git
|
|
217
|
+
:clone_url: https://github.com/hakobe/git-pr-release.git
|
|
218
|
+
:svn_url: https://github.com/hakobe/git-pr-release
|
|
219
|
+
:homepage: https://rubygems.org/gems/git-pr-release
|
|
220
|
+
:size: 236
|
|
221
|
+
:stargazers_count: 0
|
|
222
|
+
:watchers_count: 0
|
|
223
|
+
:language: Ruby
|
|
224
|
+
:has_issues: false
|
|
225
|
+
:has_projects: true
|
|
226
|
+
:has_downloads: true
|
|
227
|
+
:has_wiki: true
|
|
228
|
+
:has_pages: false
|
|
229
|
+
:forks_count: 0
|
|
230
|
+
:mirror_url:
|
|
231
|
+
:archived: false
|
|
232
|
+
:open_issues_count: 0
|
|
233
|
+
:license:
|
|
234
|
+
:forks: 0
|
|
235
|
+
:open_issues: 0
|
|
236
|
+
:watchers: 0
|
|
237
|
+
:default_branch: master
|
|
238
|
+
:base:
|
|
239
|
+
:label: motemen:master
|
|
240
|
+
:ref: master
|
|
241
|
+
:sha: a0d1fd72732d705270878d22601c44e0533641e1
|
|
242
|
+
:user:
|
|
243
|
+
:login: motemen
|
|
244
|
+
:id: 8465
|
|
245
|
+
:node_id: MDQ6VXNlcjg0NjU=
|
|
246
|
+
:avatar_url: https://avatars2.githubusercontent.com/u/8465?v=4
|
|
247
|
+
:gravatar_id: ''
|
|
248
|
+
:url: https://api.github.com/users/motemen
|
|
249
|
+
:html_url: https://github.com/motemen
|
|
250
|
+
:followers_url: https://api.github.com/users/motemen/followers
|
|
251
|
+
:following_url: https://api.github.com/users/motemen/following{/other_user}
|
|
252
|
+
:gists_url: https://api.github.com/users/motemen/gists{/gist_id}
|
|
253
|
+
:starred_url: https://api.github.com/users/motemen/starred{/owner}{/repo}
|
|
254
|
+
:subscriptions_url: https://api.github.com/users/motemen/subscriptions
|
|
255
|
+
:organizations_url: https://api.github.com/users/motemen/orgs
|
|
256
|
+
:repos_url: https://api.github.com/users/motemen/repos
|
|
257
|
+
:events_url: https://api.github.com/users/motemen/events{/privacy}
|
|
258
|
+
:received_events_url: https://api.github.com/users/motemen/received_events
|
|
259
|
+
:type: User
|
|
260
|
+
:site_admin: false
|
|
261
|
+
:repo:
|
|
262
|
+
:id: 15468156
|
|
263
|
+
:node_id: MDEwOlJlcG9zaXRvcnkxNTQ2ODE1Ng==
|
|
264
|
+
:name: git-pr-release
|
|
265
|
+
:full_name: motemen/git-pr-release
|
|
266
|
+
:private: false
|
|
267
|
+
:owner:
|
|
268
|
+
:login: motemen
|
|
269
|
+
:id: 8465
|
|
270
|
+
:node_id: MDQ6VXNlcjg0NjU=
|
|
271
|
+
:avatar_url: https://avatars2.githubusercontent.com/u/8465?v=4
|
|
272
|
+
:gravatar_id: ''
|
|
273
|
+
:url: https://api.github.com/users/motemen
|
|
274
|
+
:html_url: https://github.com/motemen
|
|
275
|
+
:followers_url: https://api.github.com/users/motemen/followers
|
|
276
|
+
:following_url: https://api.github.com/users/motemen/following{/other_user}
|
|
277
|
+
:gists_url: https://api.github.com/users/motemen/gists{/gist_id}
|
|
278
|
+
:starred_url: https://api.github.com/users/motemen/starred{/owner}{/repo}
|
|
279
|
+
:subscriptions_url: https://api.github.com/users/motemen/subscriptions
|
|
280
|
+
:organizations_url: https://api.github.com/users/motemen/orgs
|
|
281
|
+
:repos_url: https://api.github.com/users/motemen/repos
|
|
282
|
+
:events_url: https://api.github.com/users/motemen/events{/privacy}
|
|
283
|
+
:received_events_url: https://api.github.com/users/motemen/received_events
|
|
284
|
+
:type: User
|
|
285
|
+
:site_admin: false
|
|
286
|
+
:html_url: https://github.com/motemen/git-pr-release
|
|
287
|
+
:description: Release pull request generator
|
|
288
|
+
:fork: false
|
|
289
|
+
:url: https://api.github.com/repos/motemen/git-pr-release
|
|
290
|
+
:forks_url: https://api.github.com/repos/motemen/git-pr-release/forks
|
|
291
|
+
:keys_url: https://api.github.com/repos/motemen/git-pr-release/keys{/key_id}
|
|
292
|
+
:collaborators_url: https://api.github.com/repos/motemen/git-pr-release/collaborators{/collaborator}
|
|
293
|
+
:teams_url: https://api.github.com/repos/motemen/git-pr-release/teams
|
|
294
|
+
:hooks_url: https://api.github.com/repos/motemen/git-pr-release/hooks
|
|
295
|
+
:issue_events_url: https://api.github.com/repos/motemen/git-pr-release/issues/events{/number}
|
|
296
|
+
:events_url: https://api.github.com/repos/motemen/git-pr-release/events
|
|
297
|
+
:assignees_url: https://api.github.com/repos/motemen/git-pr-release/assignees{/user}
|
|
298
|
+
:branches_url: https://api.github.com/repos/motemen/git-pr-release/branches{/branch}
|
|
299
|
+
:tags_url: https://api.github.com/repos/motemen/git-pr-release/tags
|
|
300
|
+
:blobs_url: https://api.github.com/repos/motemen/git-pr-release/git/blobs{/sha}
|
|
301
|
+
:git_tags_url: https://api.github.com/repos/motemen/git-pr-release/git/tags{/sha}
|
|
302
|
+
:git_refs_url: https://api.github.com/repos/motemen/git-pr-release/git/refs{/sha}
|
|
303
|
+
:trees_url: https://api.github.com/repos/motemen/git-pr-release/git/trees{/sha}
|
|
304
|
+
:statuses_url: https://api.github.com/repos/motemen/git-pr-release/statuses/{sha}
|
|
305
|
+
:languages_url: https://api.github.com/repos/motemen/git-pr-release/languages
|
|
306
|
+
:stargazers_url: https://api.github.com/repos/motemen/git-pr-release/stargazers
|
|
307
|
+
:contributors_url: https://api.github.com/repos/motemen/git-pr-release/contributors
|
|
308
|
+
:subscribers_url: https://api.github.com/repos/motemen/git-pr-release/subscribers
|
|
309
|
+
:subscription_url: https://api.github.com/repos/motemen/git-pr-release/subscription
|
|
310
|
+
:commits_url: https://api.github.com/repos/motemen/git-pr-release/commits{/sha}
|
|
311
|
+
:git_commits_url: https://api.github.com/repos/motemen/git-pr-release/git/commits{/sha}
|
|
312
|
+
:comments_url: https://api.github.com/repos/motemen/git-pr-release/comments{/number}
|
|
313
|
+
:issue_comment_url: https://api.github.com/repos/motemen/git-pr-release/issues/comments{/number}
|
|
314
|
+
:contents_url: https://api.github.com/repos/motemen/git-pr-release/contents/{+path}
|
|
315
|
+
:compare_url: https://api.github.com/repos/motemen/git-pr-release/compare/{base}...{head}
|
|
316
|
+
:merges_url: https://api.github.com/repos/motemen/git-pr-release/merges
|
|
317
|
+
:archive_url: https://api.github.com/repos/motemen/git-pr-release/{archive_format}{/ref}
|
|
318
|
+
:downloads_url: https://api.github.com/repos/motemen/git-pr-release/downloads
|
|
319
|
+
:issues_url: https://api.github.com/repos/motemen/git-pr-release/issues{/number}
|
|
320
|
+
:pulls_url: https://api.github.com/repos/motemen/git-pr-release/pulls{/number}
|
|
321
|
+
:milestones_url: https://api.github.com/repos/motemen/git-pr-release/milestones{/number}
|
|
322
|
+
:notifications_url: https://api.github.com/repos/motemen/git-pr-release/notifications{?since,all,participating}
|
|
323
|
+
:labels_url: https://api.github.com/repos/motemen/git-pr-release/labels{/name}
|
|
324
|
+
:releases_url: https://api.github.com/repos/motemen/git-pr-release/releases{/id}
|
|
325
|
+
:deployments_url: https://api.github.com/repos/motemen/git-pr-release/deployments
|
|
326
|
+
:created_at: 2013-12-27 06:35:52.000000000 Z
|
|
327
|
+
:updated_at: 2019-02-18 01:40:52.000000000 Z
|
|
328
|
+
:pushed_at: 2018-11-15 10:45:07.000000000 Z
|
|
329
|
+
:git_url: git://github.com/motemen/git-pr-release.git
|
|
330
|
+
:ssh_url: git@github.com:motemen/git-pr-release.git
|
|
331
|
+
:clone_url: https://github.com/motemen/git-pr-release.git
|
|
332
|
+
:svn_url: https://github.com/motemen/git-pr-release
|
|
333
|
+
:homepage: https://rubygems.org/gems/git-pr-release
|
|
334
|
+
:size: 62
|
|
335
|
+
:stargazers_count: 359
|
|
336
|
+
:watchers_count: 359
|
|
337
|
+
:language: Ruby
|
|
338
|
+
:has_issues: true
|
|
339
|
+
:has_projects: true
|
|
340
|
+
:has_downloads: true
|
|
341
|
+
:has_wiki: true
|
|
342
|
+
:has_pages: false
|
|
343
|
+
:forks_count: 28
|
|
344
|
+
:mirror_url:
|
|
345
|
+
:archived: false
|
|
346
|
+
:open_issues_count: 6
|
|
347
|
+
:license:
|
|
348
|
+
:key: mit
|
|
349
|
+
:name: MIT License
|
|
350
|
+
:spdx_id: MIT
|
|
351
|
+
:url: https://api.github.com/licenses/mit
|
|
352
|
+
:node_id: MDc6TGljZW5zZTEz
|
|
353
|
+
:forks: 28
|
|
354
|
+
:open_issues: 6
|
|
355
|
+
:watchers: 359
|
|
356
|
+
:default_branch: master
|
|
357
|
+
:_links:
|
|
358
|
+
:self:
|
|
359
|
+
:href: https://api.github.com/repos/motemen/git-pr-release/pulls/7
|
|
360
|
+
:html:
|
|
361
|
+
:href: https://github.com/motemen/git-pr-release/pull/7
|
|
362
|
+
:issue:
|
|
363
|
+
:href: https://api.github.com/repos/motemen/git-pr-release/issues/7
|
|
364
|
+
:comments:
|
|
365
|
+
:href: https://api.github.com/repos/motemen/git-pr-release/issues/7/comments
|
|
366
|
+
:review_comments:
|
|
367
|
+
:href: https://api.github.com/repos/motemen/git-pr-release/pulls/7/comments
|
|
368
|
+
:review_comment:
|
|
369
|
+
:href: https://api.github.com/repos/motemen/git-pr-release/pulls/comments{/number}
|
|
370
|
+
:commits:
|
|
371
|
+
:href: https://api.github.com/repos/motemen/git-pr-release/pulls/7/commits
|
|
372
|
+
:statuses:
|
|
373
|
+
:href: https://api.github.com/repos/motemen/git-pr-release/statuses/67d936fb57851f85db28249e91dfa0d8ccfe530b
|
|
374
|
+
:author_association: CONTRIBUTOR
|
|
375
|
+
:merged: true
|
|
376
|
+
:mergeable:
|
|
377
|
+
:rebaseable:
|
|
378
|
+
:mergeable_state: unknown
|
|
379
|
+
:merged_by:
|
|
380
|
+
:login: motemen
|
|
381
|
+
:id: 8465
|
|
382
|
+
:node_id: MDQ6VXNlcjg0NjU=
|
|
383
|
+
:avatar_url: https://avatars2.githubusercontent.com/u/8465?v=4
|
|
384
|
+
:gravatar_id: ''
|
|
385
|
+
:url: https://api.github.com/users/motemen
|
|
386
|
+
:html_url: https://github.com/motemen
|
|
387
|
+
:followers_url: https://api.github.com/users/motemen/followers
|
|
388
|
+
:following_url: https://api.github.com/users/motemen/following{/other_user}
|
|
389
|
+
:gists_url: https://api.github.com/users/motemen/gists{/gist_id}
|
|
390
|
+
:starred_url: https://api.github.com/users/motemen/starred{/owner}{/repo}
|
|
391
|
+
:subscriptions_url: https://api.github.com/users/motemen/subscriptions
|
|
392
|
+
:organizations_url: https://api.github.com/users/motemen/orgs
|
|
393
|
+
:repos_url: https://api.github.com/users/motemen/repos
|
|
394
|
+
:events_url: https://api.github.com/users/motemen/events{/privacy}
|
|
395
|
+
:received_events_url: https://api.github.com/users/motemen/received_events
|
|
396
|
+
:type: User
|
|
397
|
+
:site_admin: false
|
|
398
|
+
:comments: 2
|
|
399
|
+
:review_comments: 2
|
|
400
|
+
:maintainer_can_modify: false
|
|
401
|
+
:commits: 2
|
|
402
|
+
:additions: 17
|
|
403
|
+
:deletions: 1
|
|
404
|
+
:changed_files: 1
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
RSpec.describe Git::Pr::Release::PullRequest do
|
|
4
|
+
let(:pr_data) {
|
|
5
|
+
agent = Sawyer::Agent.new "http://foo.com/a/" do |conn|
|
|
6
|
+
conn.builder.handlers.delete(Faraday::Adapter::NetHttp)
|
|
7
|
+
conn.adapter :test, Faraday::Adapter::Test::Stubs.new
|
|
8
|
+
end
|
|
9
|
+
Sawyer::Resource.new(agent, load_yaml(pr_data_yaml))
|
|
10
|
+
}
|
|
11
|
+
subject { described_class.new(pr_data) }
|
|
12
|
+
|
|
13
|
+
describe "#mention" do
|
|
14
|
+
context "with multiple assignees" do
|
|
15
|
+
let(:pr_data_yaml) { "pr_7.yml" }
|
|
16
|
+
|
|
17
|
+
it "returns all assignees as mentions" do
|
|
18
|
+
expect(subject.mention).to eq " @hakobe @toshimaru @Copilot"
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
context "with no assignees" do
|
|
23
|
+
let(:pr_data_yaml) { "pr_3.yml" }
|
|
24
|
+
|
|
25
|
+
it "returns PR creator as mention" do
|
|
26
|
+
expect(subject.mention).to eq " @hakobe"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
context "when mention_type is 'author'" do
|
|
31
|
+
let(:pr_data_yaml) { "pr_7.yml" }
|
|
32
|
+
|
|
33
|
+
before do
|
|
34
|
+
allow(Git::Pr::Release::PullRequest).to receive(:mention_type).and_return('author')
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
it "returns PR author regardless of assignees" do
|
|
38
|
+
expect(subject.mention).to eq " @hakobe"
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
describe "#to_checklist_item" do
|
|
44
|
+
context "with multiple assignees" do
|
|
45
|
+
let(:pr_data_yaml) { "pr_7.yml" }
|
|
46
|
+
|
|
47
|
+
it "includes all assignees in the checklist item" do
|
|
48
|
+
expect(subject.to_checklist_item).to eq "- [ ] #7 @hakobe @toshimaru @Copilot"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
it "includes title when print_title is true" do
|
|
52
|
+
expect(subject.to_checklist_item(true)).to eq "- [ ] #7 Support multiple assignees @hakobe @toshimaru @Copilot"
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
data/spec/git/pr/release_spec.rb
CHANGED
|
@@ -90,6 +90,26 @@ RSpec.describe Git::Pr::Release do
|
|
|
90
90
|
MARKDOWN
|
|
91
91
|
}
|
|
92
92
|
end
|
|
93
|
+
context "new pr added when the same numbers are included in a forward match" do
|
|
94
|
+
it {
|
|
95
|
+
actual = merge_pr_body(<<~OLD_BODY, <<~NEW_BODY)
|
|
96
|
+
- [x] #3 Provides a creating release pull-request object for template @hakobe
|
|
97
|
+
- [ ] #6 Support two factor auth @ninjinkun
|
|
98
|
+
OLD_BODY
|
|
99
|
+
- [ ] #3 Provides a creating release pull-request object for template @hakobe
|
|
100
|
+
- [ ] #4 use user who create PR if there is no assignee @hakobe
|
|
101
|
+
- [ ] #6 Support two factor auth @ninjinkun
|
|
102
|
+
- [ ] #30 Extract logic from bin/git-pr-release @banyan
|
|
103
|
+
NEW_BODY
|
|
104
|
+
|
|
105
|
+
expect(actual).to eq <<~MARKDOWN.chomp
|
|
106
|
+
- [x] #3 Provides a creating release pull-request object for template @hakobe
|
|
107
|
+
- [ ] #4 use user who create PR if there is no assignee @hakobe
|
|
108
|
+
- [ ] #6 Support two factor auth @ninjinkun
|
|
109
|
+
- [ ] #30 Extract logic from bin/git-pr-release @banyan
|
|
110
|
+
MARKDOWN
|
|
111
|
+
}
|
|
112
|
+
end
|
|
93
113
|
end
|
|
94
114
|
|
|
95
115
|
describe "#host_and_repository_and_scheme" do
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-pr-release
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- motemen
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: octokit
|
|
@@ -66,6 +65,20 @@ dependencies:
|
|
|
66
65
|
- - ">="
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
67
|
version: '0'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: rake
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
type: :development
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '0'
|
|
69
82
|
- !ruby/object:Gem::Dependency
|
|
70
83
|
name: rspec
|
|
71
84
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -137,9 +150,11 @@ files:
|
|
|
137
150
|
- spec/fixtures/file/pr_3.yml
|
|
138
151
|
- spec/fixtures/file/pr_4.yml
|
|
139
152
|
- spec/fixtures/file/pr_6.yml
|
|
153
|
+
- spec/fixtures/file/pr_7.yml
|
|
140
154
|
- spec/fixtures/file/template_1.erb
|
|
141
155
|
- spec/fixtures/file/template_2.erb
|
|
142
156
|
- spec/git/pr/release/cli_spec.rb
|
|
157
|
+
- spec/git/pr/release/pull_request_spec.rb
|
|
143
158
|
- spec/git/pr/release_spec.rb
|
|
144
159
|
- spec/spec_helper.rb
|
|
145
160
|
- spec/support/capture_support.rb
|
|
@@ -148,7 +163,6 @@ homepage: https://github.com/x-motemen/git-pr-release
|
|
|
148
163
|
licenses:
|
|
149
164
|
- MIT
|
|
150
165
|
metadata: {}
|
|
151
|
-
post_install_message:
|
|
152
166
|
rdoc_options: []
|
|
153
167
|
require_paths:
|
|
154
168
|
- lib
|
|
@@ -163,8 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
163
177
|
- !ruby/object:Gem::Version
|
|
164
178
|
version: '0'
|
|
165
179
|
requirements: []
|
|
166
|
-
rubygems_version: 3.
|
|
167
|
-
signing_key:
|
|
180
|
+
rubygems_version: 3.6.9
|
|
168
181
|
specification_version: 4
|
|
169
182
|
summary: Creates a release pull request
|
|
170
183
|
test_files:
|
|
@@ -173,9 +186,11 @@ test_files:
|
|
|
173
186
|
- spec/fixtures/file/pr_3.yml
|
|
174
187
|
- spec/fixtures/file/pr_4.yml
|
|
175
188
|
- spec/fixtures/file/pr_6.yml
|
|
189
|
+
- spec/fixtures/file/pr_7.yml
|
|
176
190
|
- spec/fixtures/file/template_1.erb
|
|
177
191
|
- spec/fixtures/file/template_2.erb
|
|
178
192
|
- spec/git/pr/release/cli_spec.rb
|
|
193
|
+
- spec/git/pr/release/pull_request_spec.rb
|
|
179
194
|
- spec/git/pr/release_spec.rb
|
|
180
195
|
- spec/spec_helper.rb
|
|
181
196
|
- spec/support/capture_support.rb
|