zz-export-pull-requests 0.3.7 → 0.3.8
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/bin/epr +8 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec95365b456ed1a2890c05f0a2bc1c8acdc99023dffecbb8f7a6f38aa04ba97f
|
|
4
|
+
data.tar.gz: 19c8284d9077ffd15db69b909bce6e8d441696623f3c5c532679f20ffdf6ddc7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c02307e47e9787d5e41e2b1be655d274857f6a2ae6f72d101f4cce05239ce9a0af7c6479addf2ad649ad868cb2bf50d63bf36cd13cf644f93793ff7d49a008de
|
|
7
|
+
data.tar.gz: ab46b97ff17d863128a1321d029077ffb3d4b45178f71fc99cc17c9d14016be0ec06e97cdb7f3258c2ed93c51c066c2210c8f74ff0cc4d874c25df8825d40ecd
|
data/bin/epr
CHANGED
|
@@ -9,7 +9,7 @@ require "github_api"
|
|
|
9
9
|
require "gitlab"
|
|
10
10
|
require "bitbucket_rest_api"
|
|
11
11
|
|
|
12
|
-
VERSION = "0.3.
|
|
12
|
+
VERSION = "0.3.8"
|
|
13
13
|
SERVICES = %w[github gitlab bitbucket]
|
|
14
14
|
GIT_CONFIGS = %w[epr.token github.oauth-token]
|
|
15
15
|
|
|
@@ -100,7 +100,8 @@ def bitbucket(user, repo)
|
|
|
100
100
|
!pr.source.branch.nil? ? pr.source.branch.name : "",
|
|
101
101
|
!pr.destination.branch.nil? ? pr.destination.branch.name : "",
|
|
102
102
|
!pr.reason.nil? ? pr.reason : "",
|
|
103
|
-
!pr.merge_commit.nil? ? pr.merge_commit["hash"] : ""
|
|
103
|
+
!pr.merge_commit.nil? ? pr.merge_commit["hash"] : "",
|
|
104
|
+
!pr.closed_by.nil? ? pr.closed_by.display_name : ""
|
|
104
105
|
]
|
|
105
106
|
end
|
|
106
107
|
|
|
@@ -127,6 +128,7 @@ def bitbucket(user, repo)
|
|
|
127
128
|
comment.pullrequest.id,
|
|
128
129
|
comment.user? ? comment.user.display_name : no_user,
|
|
129
130
|
comment.inline? ? "inline" : "normal",
|
|
131
|
+
comment.id,
|
|
130
132
|
comment.content.raw,
|
|
131
133
|
comment.content.html,
|
|
132
134
|
localtime(comment.updated_on),
|
|
@@ -134,7 +136,8 @@ def bitbucket(user, repo)
|
|
|
134
136
|
comment.inline? ? comment.inline.to : "",
|
|
135
137
|
comment.inline? ? comment.inline.from : "",
|
|
136
138
|
comment.inline? ? comment.inline.path : "",
|
|
137
|
-
comment["links"].code? ? comment["links"].code.href : ""
|
|
139
|
+
comment["links"].code? ? comment["links"].code.href : "",
|
|
140
|
+
comment.parent? ? comment.parent.id : ""
|
|
138
141
|
]
|
|
139
142
|
end
|
|
140
143
|
break unless comments["next"]
|
|
@@ -286,9 +289,9 @@ def export_repos(argv)
|
|
|
286
289
|
rows = []
|
|
287
290
|
|
|
288
291
|
if $export == EXPORT_PR_COMMENTS
|
|
289
|
-
rows << %w[Repository Type PRNumber User CommentType BodyRaw BodyHTML CreatedAt IsDeleted ToLine FromLine FilePath Diff]
|
|
292
|
+
rows << %w[Repository Type PRNumber User CommentType CommentID BodyRaw BodyHTML CreatedAt IsDeleted ToLine FromLine FilePath Diff ParentID]
|
|
290
293
|
else
|
|
291
|
-
rows << %w[Repository Type # User Title State CreatedAt UpdatedAt URL BodyRaw BodyHTML SourceCommit DestinationCommit SourceBranch DestinationBranch DeclineReason MergeCommit]
|
|
294
|
+
rows << %w[Repository Type # User Title State CreatedAt UpdatedAt URL BodyRaw BodyHTML SourceCommit DestinationCommit SourceBranch DestinationBranch DeclineReason MergeCommit ClosedBy]
|
|
292
295
|
end
|
|
293
296
|
|
|
294
297
|
rows[-1].insert(4, "Body") if $body
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zz-export-pull-requests
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zulhilmi Zainudin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-12-
|
|
11
|
+
date: 2019-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: github_api
|