git-pr-release 1.5.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/git-pr-release.gemspec +1 -1
- data/lib/git/pr/release/cli.rb +3 -3
- data/lib/git/pr/release/pull_request.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af2e7e05f02c6332bb6d9387656365f71d87fc05497586d42ec843d7ea68dc39
|
4
|
+
data.tar.gz: 43022545e4eca298c534290af2945c86a7fc16999988cc9c70dda111e1ffa9c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a6a014d70cd7e38624accb771823546864b8bd5c6b3db0eebf3227f8779f73c881cbf330f9e04b62e3cff57186c95c960a8d8ead1db1ce22df6cf26c6d49c5
|
7
|
+
data.tar.gz: fcc864139b09acca3236053832c6cdea2971d6ffe0bbd24e387d6d00ed47852b891d02a878d002d0f93cf4ac31b75dc6220846a281b83bc7fd8dc980924ee058
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# git-pr-release
|
2
2
|
|
3
|
+
## v1.9.0 (2021-08-04)
|
4
|
+
|
5
|
+
[full changelog](https://github.com/x-motemen/git-pr-release/compare/v1.8.0...v1.9.0)
|
6
|
+
|
7
|
+
* (#68) Add nil check for release\_pr.body (@w1mvy)
|
8
|
+
|
9
|
+
## v1.8.0 (2021-06-24)
|
10
|
+
|
11
|
+
[full changelog](https://github.com/x-motemen/git-pr-release/compare/v1.7.0...v1.8.0)
|
12
|
+
|
13
|
+
* (#66) Exclude titles from checklist items (@nhosoya)
|
14
|
+
|
15
|
+
## v1.7.0 (2021-05-24)
|
16
|
+
|
17
|
+
[full changelog](https://github.com/x-motemen/git-pr-release/compare/v1.6.0...v1.7.0)
|
18
|
+
|
19
|
+
* (#64) fix wrong pr number due to sleep (@mpon)
|
20
|
+
|
21
|
+
## v1.6.0 (2021-05-15)
|
22
|
+
|
23
|
+
[full changelog](https://github.com/x-motemen/git-pr-release/compare/v1.5.0...v1.6.0)
|
24
|
+
|
25
|
+
* (#63) Sort merged_pull_request_numbers numerically by default (@yutailang0119)
|
26
|
+
|
3
27
|
## v1.5.0 (2021-04-02)
|
4
28
|
|
5
29
|
[full changelog](https://github.com/x-motemen/git-pr-release/compare/v1.4.0...v1.5.0)
|
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 = '1.
|
7
|
+
spec.version = '1.9.0'
|
8
8
|
spec.authors = ["motemen"]
|
9
9
|
spec.email = ["motemen@gmail.com"]
|
10
10
|
spec.summary = 'Creates a release pull request'
|
data/lib/git/pr/release/cli.rb
CHANGED
@@ -87,7 +87,7 @@ module Git
|
|
87
87
|
|
88
88
|
merged_pull_request_numbers = @squashed ? fetch_merged_pr_numbers_from_github : fetch_merged_pr_numbers_from_git_remote
|
89
89
|
|
90
|
-
merged_prs = merged_pull_request_numbers.map do |nr|
|
90
|
+
merged_prs = merged_pull_request_numbers.sort.map do |nr|
|
91
91
|
pr = client.pull_request repository, nr
|
92
92
|
say "To be released: ##{pr.number} #{pr.title}", :notice
|
93
93
|
pr
|
@@ -124,8 +124,8 @@ module Git
|
|
124
124
|
|
125
125
|
def fetch_merged_pr_numbers_from_github
|
126
126
|
git(:log, '--pretty=format:%H', "origin/#{production_branch}..origin/#{staging_branch}").map(&:chomp).map do |sha1|
|
127
|
-
client.search_issues("repo:#{repository} is:pr is:closed #{sha1}")[:items].map(&:number)
|
128
127
|
sleep 1
|
128
|
+
client.search_issues("repo:#{repository} is:pr is:closed #{sha1}")[:items].map(&:number)
|
129
129
|
end.flatten
|
130
130
|
end
|
131
131
|
|
@@ -176,7 +176,7 @@ module Git
|
|
176
176
|
|
177
177
|
def build_and_merge_pr_title_and_body(release_pr, merged_prs, changed_files)
|
178
178
|
# release_pr is nil when dry_run && create_mode
|
179
|
-
old_body = release_pr ? release_pr.body : ""
|
179
|
+
old_body = (release_pr && release_pr.body != nil) ? release_pr.body : ""
|
180
180
|
pr_title, new_body = build_pr_title_and_body(release_pr, merged_prs, changed_files, template_path)
|
181
181
|
|
182
182
|
[pr_title, merge_pr_body(old_body, new_body)]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-pr-release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- motemen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04
|
11
|
+
date: 2021-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
165
|
+
rubygems_version: 3.3.0.dev
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Creates a release pull request
|