export-pull-requests 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Changes +6 -1
  3. data/bin/epr +4 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d97b2bc9bdd7af36dbdedfbf88790086f34fc2f
4
- data.tar.gz: cd10591a4ca3335bbde2c326593daf2add5e256e
3
+ metadata.gz: f3ef7be95a92abf1ffcd0eac471f5a3d5251fbe3
4
+ data.tar.gz: 99bba99a08631b69bc8174b83bea1e250eeae28e
5
5
  SHA512:
6
- metadata.gz: 602ab846c160677ce24b0ace2112aa224c3b56f841b6ef55bdf0bc28facd0ab908dfe2a1e6b336830135db07300096c8f7ae22a3eaad7f677e1efb6bcb573fe9
7
- data.tar.gz: 919eee85dda2996ac15db4b069342a669c740ff593d1a40f1d40e7953b36018c761af0a9438bd123db7eebb9e4fd7f19615ba5ad4e2409a8b27c7293445d51c9
6
+ metadata.gz: 356deeb4db67174cbad7b8b9d3e88a51d004bf6ba10467b26e407478914832da6944060d8a5e0d9a7e67b75622e8c388f22764696418af1d9f5a779001ffcc97
7
+ data.tar.gz: 6780a66037eb01f5ce5de3fa9b62a0eb9e3228fb2fd41a8ab2864aa268d8063e87c6ffc029d267ca09ab4292f34a3f224d5a75d6eb46870694a5a7dfda107850
data/Changes CHANGED
@@ -1,4 +1,9 @@
1
- v0.3.1 2019-02-09
1
+ v0.3.3 2019-05-01
2
+ --------------------
3
+ Bug Fixes:
4
+ * GitHub PR only exports were output as an "issue" instead of "PR"
5
+
6
+ v0.3.2 2019-02-09
2
7
  --------------------
3
8
  Bug Fixes:
4
9
  * Don't supply assignee or milestone for GitHub if nil
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.2"
12
+ VERSION = "0.3.3"
13
13
  SERVICES = %w[github gitlab bitbucket]
14
14
  GIT_CONFIGS = %w[epr.token github.oauth-token]
15
15
 
@@ -154,7 +154,9 @@ def github(user, repo)
154
154
 
155
155
  rows << [
156
156
  "#{user}/#{repo}",
157
- item.pull_request ? TYPE_PR : TYPE_ISSUE,
157
+ # If we're only retrieving PRs then item.pull_request will be nil
158
+ # It's only populated when retrieving both (issues method).
159
+ item.pull_request || method == :pull_requests ? TYPE_PR : TYPE_ISSUE,
158
160
  item.number,
159
161
  item.user.login,
160
162
  item.title,
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Skye Shaw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-09 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github_api