export-pull-requests 0.3.6 → 0.4.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/README.md +6 -3
- data/bin/epr +21 -3
- metadata +18 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0cefccef824b6fde15c18ea2cde47d45add41b80ffe494bccbfedc71581bc94
|
4
|
+
data.tar.gz: 1f1ea671cc25edf027d5ab89f4cb97f542d50a3d481fa417c7f040a64bf0260f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57204a618ac7874b0b7f50c598e538d932b5171ccf44e3a4064143110c78d8c5344aadf1b1269dfc2b6a67f8dc66cd366af667df38a11b1db49e29dbb3b009e6
|
7
|
+
data.tar.gz: fc654c6ec9ec407e16239dc6638cb366412f7298f9eec5fa9e5b2a380ea9217c110616ab93f38649e9517dcb75375cf92f2c4ecf05295f07a60e52f2567893e8
|
data/README.md
CHANGED
@@ -6,9 +6,7 @@ Supports GitHub, GitLab, and Bitbucket.
|
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
[Ruby](https://www.ruby-lang.org/en/documentation/installation/)
|
10
|
-
([why?](https://github.com/sshaw/export-pull-requests/issues/26)).
|
11
|
-
|
9
|
+
[Ruby](https://www.ruby-lang.org/en/documentation/installation/) is required.
|
12
10
|
With Ruby installed run:
|
13
11
|
|
14
12
|
gem install export-pull-requests
|
@@ -73,6 +71,11 @@ The provided URL must point the API endpoint, not the user-facing site. For GitH
|
|
73
71
|
|
74
72
|
### Bitbucket
|
75
73
|
|
74
|
+
**Due to [various issues with the Bitbucket gem](https://github.com/sshaw/export-pull-requests/issues/26) support for Bitbucket
|
75
|
+
requires using a Ruby version < 3 and manually installing the Bitbucket library via `gem install bitbucket_rest_api`.**
|
76
|
+
|
77
|
+
**Alternatively, on a Ruby version < 3 you can run: gem install export-pull-requests -v=0.3.7**
|
78
|
+
|
76
79
|
You can use [app passwords](https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html) for the API token.
|
77
80
|
Just provide your token info in `bitbucket_username:app_password` format:
|
78
81
|
|
data/bin/epr
CHANGED
@@ -7,9 +7,8 @@ require "logger"
|
|
7
7
|
|
8
8
|
require "github_api"
|
9
9
|
require "gitlab"
|
10
|
-
require "bitbucket_rest_api"
|
11
10
|
|
12
|
-
VERSION = "0.
|
11
|
+
VERSION = "0.4.0"
|
13
12
|
SERVICES = %w[github gitlab bitbucket]
|
14
13
|
GIT_CONFIGS = %w[epr.token github.oauth-token]
|
15
14
|
|
@@ -256,6 +255,19 @@ def export_repos(argv)
|
|
256
255
|
when "gitlab"
|
257
256
|
rows.concat(gitlab(user, repo))
|
258
257
|
when "bitbucket"
|
258
|
+
begin
|
259
|
+
require "bitbucket_rest_api"
|
260
|
+
rescue LoadError => e
|
261
|
+
# Could be an error due to gem version conflict
|
262
|
+
abort e.message unless e.instance_of?(LoadError)
|
263
|
+
abort(<<MESSAGE)
|
264
|
+
As of v0.4 the Bitbucket API is no longer included by default. To use Bitbucket you must use
|
265
|
+
a Ruby version < 3 and install the dependency yourself via: gem install bitbucket_rest_api.
|
266
|
+
|
267
|
+
Alternatively, on a Ruby version < 3 you can run: gem install export-pull-requests -v=0.3.7
|
268
|
+
MESSAGE
|
269
|
+
end
|
270
|
+
|
259
271
|
rows.concat(bitbucket(user, repo))
|
260
272
|
else
|
261
273
|
abort "unknown service provider: #$provider"
|
@@ -330,7 +342,13 @@ parser = OptionParser.new do |opts|
|
|
330
342
|
end
|
331
343
|
|
332
344
|
opts.on "-v", "--version", "epr version" do
|
333
|
-
|
345
|
+
begin
|
346
|
+
require "bitbucket_rest_api"
|
347
|
+
rescue LoadError
|
348
|
+
end
|
349
|
+
|
350
|
+
bb_version = defined?(BitBucket) ? "v#{BitBucket::VERSION::STRING}" : "[Not installed]"
|
351
|
+
printf "v#{VERSION} (GitHub v#{Github::VERSION}, GitLab v#{Gitlab::VERSION}, Bitbucket %s)\n", bb_version
|
334
352
|
exit
|
335
353
|
end
|
336
354
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: export-pull-requests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skye Shaw
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github_api
|
@@ -39,19 +39,25 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: faraday
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.3'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '1.3'
|
58
|
+
- - "<"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '2'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rake
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,18 +95,17 @@ require_paths:
|
|
89
95
|
- lib
|
90
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
97
|
requirements:
|
92
|
-
- - "
|
98
|
+
- - ">="
|
93
99
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
100
|
+
version: '0'
|
95
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
102
|
requirements:
|
97
103
|
- - ">="
|
98
104
|
- !ruby/object:Gem::Version
|
99
105
|
version: '0'
|
100
106
|
requirements: []
|
101
|
-
|
102
|
-
|
103
|
-
signing_key:
|
107
|
+
rubygems_version: 3.2.3
|
108
|
+
signing_key:
|
104
109
|
specification_version: 4
|
105
110
|
summary: Export pull requests and issues to a CSV file.
|
106
111
|
test_files: []
|