export-pull-requests 0.3.1 → 0.3.2

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 +5 -5
  2. data/Changes +5 -0
  3. data/README.md +3 -1
  4. data/bin/epr +7 -7
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: aa3cfb134a324a1a09daa690b431a5092b2265c757fadaecd0f87bc0275fcddb
4
- data.tar.gz: 3e85340c807d3a9f8a9a07a11d707f171d19d0322e67f741badc84cdca3806ee
2
+ SHA1:
3
+ metadata.gz: 1d97b2bc9bdd7af36dbdedfbf88790086f34fc2f
4
+ data.tar.gz: cd10591a4ca3335bbde2c326593daf2add5e256e
5
5
  SHA512:
6
- metadata.gz: f92e17537078e7f6d7a160c44ad1144538fb999c0eb2689d15801f81f498eeeb8305031d378ffce99821aa48dafdae5e4a74fa7c03efc060ad19ec2d38d1aa33
7
- data.tar.gz: cbe3d1a3ef7a14fd40192ce1574fba71ad2d3f7076d67a652c4b6c9ab0dd0c2321abae4ef20b9ff79460ca40922fce540e48363c08b5728c75fc8e4a597948df
6
+ metadata.gz: 602ab846c160677ce24b0ace2112aa224c3b56f841b6ef55bdf0bc28facd0ab908dfe2a1e6b336830135db07300096c8f7ae22a3eaad7f677e1efb6bcb573fe9
7
+ data.tar.gz: 919eee85dda2996ac15db4b069342a669c740ff593d1a40f1d40e7953b36018c761af0a9438bd123db7eebb9e4fd7f19615ba5ad4e2409a8b27c7293445d51c9
data/Changes CHANGED
@@ -1,3 +1,8 @@
1
+ v0.3.1 2019-02-09
2
+ --------------------
3
+ Bug Fixes:
4
+ * Don't supply assignee or milestone for GitHub if nil
5
+
1
6
  --------------------
2
7
  v0.3.1 2019-01-28
3
8
  --------------------
data/README.md CHANGED
@@ -71,7 +71,9 @@ To connect to a custom/"Enterprise" installation of any of the supported service
71
71
  ### Bitbucket
72
72
 
73
73
  You can use [app passwords](https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html) for the API token.
74
- Just provide your token HTTP Auth style using: `username:app_password`.
74
+ Just provide your token info in `bitbucket_username:app_password` format:
75
+
76
+ epr -p bitbucket -t bitbucket_username:app_password user/repo1
75
77
 
76
78
  ### GitLab
77
79
 
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.1"
12
+ VERSION = "0.3.2"
13
13
  SERVICES = %w[github gitlab bitbucket]
14
14
  GIT_CONFIGS = %w[epr.token github.oauth-token]
15
15
 
@@ -138,12 +138,12 @@ def github(user, repo)
138
138
  options[:endpoint] = $endpoint if $endpoint
139
139
 
140
140
  $gh ||= Github.new(options)
141
- $gh.public_send(method).list(:user => user,
142
- :repo => repo,
143
- :state => $filter,
144
- :milestone => $milestone,
145
- :assignee => $assignee,
146
- :labels => $labels).each_page do |page|
141
+
142
+ options = { :user => user, :repo => repo, :state => $filter, :labels => $labels }
143
+ options[:milestone] = $milestone if $milestone
144
+ options[:assignee] = $assignee if $assignee
145
+
146
+ $gh.public_send(method).list(options).each_page do |page|
147
147
 
148
148
  next if page.size.zero? # Needed for auto_pagination
149
149
 
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.1
4
+ version: 0.3.2
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-01-28 00:00:00.000000000 Z
11
+ date: 2019-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github_api
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.7.3
102
+ rubygems_version: 2.6.14
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Export pull requests and issues to a CSV file.