export-pull-requests 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Changes +5 -0
  3. data/README.md +3 -1
  4. data/bin/epr +4 -3
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3ef7be95a92abf1ffcd0eac471f5a3d5251fbe3
4
- data.tar.gz: 99bba99a08631b69bc8174b83bea1e250eeae28e
3
+ metadata.gz: 88245d15b5031425be423a98f42b42451a5e7810
4
+ data.tar.gz: 1d60dce9efefbb4d282110b537756ac31a8d6a06
5
5
  SHA512:
6
- metadata.gz: 356deeb4db67174cbad7b8b9d3e88a51d004bf6ba10467b26e407478914832da6944060d8a5e0d9a7e67b75622e8c388f22764696418af1d9f5a779001ffcc97
7
- data.tar.gz: 6780a66037eb01f5ce5de3fa9b62a0eb9e3228fb2fd41a8ab2864aa268d8063e87c6ffc029d267ca09ab4292f34a3f224d5a75d6eb46870694a5a7dfda107850
6
+ metadata.gz: 49af965c7fb6817c8bf8dcdbfbf07608e4b384abf35b2af56692b1f04dcdac63378e8f01bcb015b3d3af78395b431c1a5a5c4090b0199045a15516b5b15c9e49
7
+ data.tar.gz: c3f868be0eaeb4a760ae8e71f5a49d3a855dba2662149b361b8ef5e6fcdbfe9316f1b458bcce5bead831a629966edb3a8007724fff77d40823ddeb7f63fb5404
data/Changes CHANGED
@@ -1,3 +1,8 @@
1
+ v0.3.4 2021-02-12
2
+ --------------------
3
+ Bug Fixes:
4
+ * Bitbucket username not exported for PRs under 2.0 API (#20)
5
+
1
6
  v0.3.3 2019-05-01
2
7
  --------------------
3
8
  Bug Fixes:
data/README.md CHANGED
@@ -66,7 +66,9 @@ Export all issues from a GitLab project:
66
66
 
67
67
  ## Service Notes
68
68
 
69
- To connect to a custom/"Enterprise" installation of any of the supported services use the endpoint option (`-e`)
69
+ To connect to a custom/"Enterprise" installation of any of the supported services use the endpoint option (`-e`).
70
+
71
+ The provided URL must point the API endpoint, not the user-facing site. For GitHub this is `http(s)://YOUR-SITE/api/v3`.
70
72
 
71
73
  ### Bitbucket
72
74
 
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.3"
12
+ VERSION = "0.3.4"
13
13
  SERVICES = %w[github gitlab bitbucket]
14
14
  GIT_CONFIGS = %w[epr.token github.oauth-token]
15
15
 
@@ -70,13 +70,14 @@ def bitbucket(user, repo)
70
70
 
71
71
  prs = $bitbucket.repos.pull_request.all(user, repo, :page => page, :state => $filter.upcase)
72
72
  prs["values"].each do |pr|
73
- next if pr.author && skip_user?(pr.author.username)
73
+ next if pr.author && (skip_user?(pr.author.display_name) || skip_user?(pr.author.nickname))
74
74
 
75
75
  rows << [
76
76
  repo_name,
77
77
  TYPE_PR,
78
78
  pr.id,
79
- pr.author ? pr.author.username : no_user,
79
+ # With the 2.0 API is this check necessary?
80
+ pr.author ? pr.author.display_name : no_user,
80
81
  pr.title,
81
82
  pr.state,
82
83
  localtime(pr.created_on),
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.3
4
+ version: 0.3.4
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-05-01 00:00:00.000000000 Z
11
+ date: 2021-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github_api