rubhub 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/github/issues/issues.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 677dce692df56f241f4f4327008d039e34b139f7
|
4
|
+
data.tar.gz: 1b271447d3b0ac3a27dba9caff897d2f20a8dd1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29a2e6fbc4c01b5606355cd081d97a639e86678031d849d9627bb10e670f687caa158df25a7f82931d6c5d71001bf0bc6cf398335339e46155884628b174fbf
|
7
|
+
data.tar.gz: 2d9c503efffd54c6ce5565786dff88c2f4454c971ad42fbbaf265a19dc50136ce9cd559adddaff7339c53ca9bf3a7a377f724096f139891a3f75fc0f4cb48acb
|
data/lib/github/issues/issues.rb
CHANGED
@@ -51,6 +51,7 @@ class Issues
|
|
51
51
|
|
52
52
|
def createIssue(repo, title, body: nil, assignee: nil,
|
53
53
|
milestone: nil, labels: nil, user: nil)
|
54
|
+
username = user == nil ? @github.username : user
|
54
55
|
params = {
|
55
56
|
title: title,
|
56
57
|
body: body,
|
@@ -60,7 +61,7 @@ class Issues
|
|
60
61
|
}
|
61
62
|
params = @github.removeEmptyParams(params)
|
62
63
|
data = params.to_json
|
63
|
-
@github.post('repos/%s/%s/issues' % [
|
64
|
+
@github.post('repos/%s/%s/issues' % [username, repo], data)
|
64
65
|
end
|
65
66
|
|
66
67
|
def editIssue(repo, id, title: nil, body: nil, assignee: nil,
|