Skip to content

Commit 1d8d209

Browse files
Support to assign multiple assignees to issue
Resolves sigmavirus24#626 I updated repo.py and issue.py to permit multiple assignees when creating and editing an issue. I modified _update_attributes, in the issue class, to support the assignees attribute; I suspect, sometime in the future, for GitHub to remove the attribute assignee alltogether. Until then, we will continue to maintain the assignee attribute. Although the GitHub's API supports the parameter assignee, it is deprecated according to the documentation. See https://developer.github.com/v3/issues/#create-an-issue for additional details. Furthermore, we will continue to maintain the assignee parameter, for backwards compatibility. I added the standard unit and integration tests to support the changes. In addition, I added two particular tests: assignee and assignees in the request. GitHub's API responds with an exception: UnprocessableEntity.
1 parent bbed706 commit 1d8d209

11 files changed

Lines changed: 138 additions & 4 deletions

github3/issues/issue.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ def _update_attributes(self, issue):
3838
self.assignee = issue.get('assignee')
3939
if self.assignee:
4040
self.assignee = User(issue.get('assignee'), self)
41+
self.assignees = issue.get('assignees')
42+
if self.assignees:
43+
self.assignees = [
44+
User(assignee) for assignee in self.assignees
45+
]
4146
#: Body (description) of the issue.
4247
self.body = issue.get('body', '')
4348
#: HTML formatted body of the issue.
@@ -193,7 +198,7 @@ def create_comment(self, body):
193198

194199
@requires_auth
195200
def edit(self, title=None, body=None, assignee=None, state=None,
196-
milestone=None, labels=None):
201+
milestone=None, labels=None, assignees=None):
197202
"""Edit this issue.
198203
199204
:param str title: Title of the issue
@@ -204,14 +209,18 @@ def edit(self, title=None, body=None, assignee=None, state=None,
204209
:param int milestone: the NUMBER (not title) of the milestone to
205210
assign this to [1]_, or 0 to remove the milestone
206211
:param list labels: list of labels to apply this to
212+
:param assignees: (optional), login of the users to assign the
213+
issue to
214+
:type assignees: list of strings
207215
:returns: bool
208216
209217
.. [1] Milestone numbering starts at 1, i.e. the first milestone you
210218
create is 1, the second is 2, etc.
211219
"""
212220
json = None
213221
data = {'title': title, 'body': body, 'assignee': assignee,
214-
'state': state, 'milestone': milestone, 'labels': labels}
222+
'state': state, 'milestone': milestone, 'labels': labels,
223+
'assignees': assignees}
215224
self._remove_none(data)
216225
if data:
217226
if 'milestone' in data and data['milestone'] == 0:

github3/repos/repo.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,8 @@ def create_issue(self,
800800
body=None,
801801
assignee=None,
802802
milestone=None,
803-
labels=None):
803+
labels=None,
804+
assignees=None):
804805
"""Create an issue on this repository.
805806
806807
:param str title: (required), title of the issue
@@ -814,11 +815,15 @@ def create_issue(self,
814815
:param labels: (optional), labels to apply to this
815816
issue
816817
:type labels: list of strings
818+
:param assignees: (optional), login of the users to assign the
819+
issue to
820+
:type assignees: list of strings
817821
:returns: :class:`Issue <github3.issues.issue.Issue>` if successful,
818822
otherwise None
819823
"""
820824
issue = {'title': title, 'body': body, 'assignee': assignee,
821-
'milestone': milestone, 'labels': labels}
825+
'milestone': milestone, 'labels': labels,
826+
'assignees': assignees}
822827
self._remove_none(issue)
823828
json = None
824829

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a4", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/issues/637"}, "response": {"body": {"string": "", "base64_string": "H4sIAAAAAAAAA+1YbW/bNhD+K5qAFlsQmZbkOq4mO8BQDNi3fdhQoElhUDItE5VIgaTsekb++46kY0uqkiayN/SDYcSOqLuHx3vhvezcSuRu5K6UKmWEEC7pIKNqVSWDlBdIkJJLJGlW4DUVlQxGyL4NB+UWUSkrItE4vHGvXUNKFRfbeX9IwMlxQnJ5AkZNLGTBdojhgjwAOJypIEydC/4RDpDJ+oy4FgxQV6rIW6q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Yk6AumxzvkGR7ad7t9Lozs/RuBFrJ5DDeu4zoLiO6xhy8R53x8C/lFdQ/iBkAAA==", "encoding": "utf-8"}, "headers": {"X-XSS-Protection": "1; mode=block", "Content-Security-Policy": "default-src 'none'", "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Transfer-Encoding": "chunked", "Last-Modified": "Sun, 09 Oct 2016 23:20:38 GMT", "Access-Control-Allow-Origin": "*", "X-Frame-Options": "deny", "Status": "200 OK", "X-Served-By": "7f48e2f7761567e923121f17538d7a6d", "X-GitHub-Request-Id": "49C132BA:06D1:76C653F:57FAD230", "ETag": "W/\"fabb212b5e9a9fd3b6dd7d4c95fb0014\"", "Date": "Sun, 09 Oct 2016 23:26:40 GMT", "X-RateLimit-Remaining": "4989", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "Server": "GitHub.com", "X-OAuth-Scopes": "admin:org, admin:public_key, admin:repo_hook, repo", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "X-Content-Type-Options": "nosniff", "Content-Encoding": "gzip", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "X-RateLimit-Limit": "5000", "Cache-Control": "private, max-age=60, s-maxage=60", "Content-Type": "application/json; charset=utf-8", "X-Accepted-OAuth-Scopes": "public_repo, repo", "X-RateLimit-Reset": "1476056241"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/issues/637"}, "recorded_at": "2016-10-09T23:26:40"}, {"request": {"body": {"string": "{\"title\": \"Integration test for editing an issue\", \"assignee\": \"itsmemattchung\", \"assignees\": [\"itsmemattchung\", \"sigmavirus24\"]}", "encoding": "utf-8"}, "headers": {"Content-Length": "129", "Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a4", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "PATCH", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/issues/637"}, "response": {"body": {"string": "{\"message\":\"You cannot pass both `assignee` and `assignees`. Only one may be provided.\",\"documentation_url\":\"https://developer.github.com/v3/issues/#edit-an-issue\"}", "encoding": "utf-8"}, "headers": {"Status": "422 Unprocessable Entity", "Content-Length": "164", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "X-Content-Type-Options": "nosniff", "Content-Security-Policy": "default-src 'none'", "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "X-GitHub-Request-Id": "49C132BA:06D1:76C654F:57FAD230", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-RateLimit-Remaining": "4988", "Server": "GitHub.com", "X-XSS-Protection": "1; mode=block", "X-RateLimit-Limit": "5000", "Access-Control-Allow-Origin": "*", "Date": "Sun, 09 Oct 2016 23:26:40 GMT", "X-OAuth-Scopes": "admin:org, admin:public_key, admin:repo_hook, repo", "Content-Type": "application/json; charset=utf-8", "X-Accepted-OAuth-Scopes": "public_repo, repo", "X-Frame-Options": "deny", "X-RateLimit-Reset": "1476056241"}, "status": {"message": "Unprocessable Entity", "code": 422}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/issues/637"}, "recorded_at": "2016-10-09T23:26:40"}], "recorded_with": "betamax/0.7.1"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a4", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/issues/637"}, "response": {"body": {"string": "", "base64_string": "H4sIAAAAAAAAA+1WYW/TPBD+K3kj8QqmpV6a0ZaQdhIgJL7xAYTEhionvaUWiR3Zl5ZS7b9ztruuK9mYCrx6P0zV2sW+e+7xPXcXr8NWV2EazhEbkzLGG9ErBc7bvFeommlolGFGlDVfCN2a/inzu0mvWTFhTAuGDZJheBw6U4FKr6aHQxJOxXOozG9g7NBiHmzNJK/hisDpTDVI/FPw13CEDIs/iOvBCHWOdbWXih11HqSLmIVpPIpfxMnp4PlxKNs6Bx2mJNpxiAIrIPVfa+AIwTurZ/BOIpSao1Ay+AAGiUZrrMs6rFQpJNkLNDXUHLGYt7IkAxtkmDwfxSf945AvOHK9r6BbNJvisoCFokASXZ21bON9thgnhEfxPYgFDi2D+6rUohn2E6n7k/eT+aWqKrUkpH3mt1uiKxjb+hJV/7+Q5cE45LtmCudASaSj2cIthflV1XYSc35ralqDUzGzSIZk0DA7gNzGk6gtJbFau+ngINvcFFo0tmQOyd4tf8JTuuRSfHcleAge+RuCcRPpgHM6P/J/SEt3Jt07rlmjxYIXK5siDQWIBaX9YNA9BMLEVWOb96NtThJBIEz5rLYNeskrA1fXszRMz7843dGaqwYkmVeq+ArUXM6UetbQMJFABrKtqptn451rUdEkUHK7v518aUxT1Y2P2ZQj4fdP4kEUn0QnLz704zQZpPHgM8Vrm1m3TZLGwzSJrU1RKbOB8SxyNVtNbRsTbtZM3kAFNKZqCPglgs5YM7mQFzKb9ycZoy/30Ew+cYkBqiDnxdcA58IE7kV1FmQGtZLlJOPBXMPl+GL72lsul71ctRJXRrW6ADeUNq+3ZNQ/TUZxHPljRm45EjdTMkLKzVmL9bTgdcMpj+OmamlS/kuPL926H3Vj1EQJ9JP+23iUnA6HW4MaZqKtxz7idtVzGfuJfxFO3iuDAQ880YDGs8B/Msbp8JuDBZ8oNUUBDXojASZYCB488MD/xRle7WTZcu9luSbhrJZUAU5whG+2kPbUtuLaz53qdmXnroTssuht4naE1BSQ/rLd0oi8thO7EUWR/bmT0tHReRerL0+vr1t/qe7urTm7ebve7MqtWnt2dHRX5s53U/eLg3TW029z6zlJWJcmNzMkXz3eV/wVvvMN9XhfebyvbO/v7H9yX7n6ASfUZbaNDgAA", "encoding": "utf-8"}, "headers": {"X-XSS-Protection": "1; mode=block", "Content-Security-Policy": "default-src 'none'", "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Transfer-Encoding": "chunked", "Last-Modified": "Sun, 09 Oct 2016 23:17:31 GMT", "Access-Control-Allow-Origin": "*", "X-Frame-Options": "deny", "Status": "200 OK", "X-Served-By": "e183f7c661b1bbc2c987b3c4dc7b04e0", "X-GitHub-Request-Id": "49C132BA:06D1:76BBFEF:57FAD0C5", "ETag": "W/\"6913a2f4023ec3d269e15621b17a6e91\"", "Date": "Sun, 09 Oct 2016 23:20:38 GMT", "X-RateLimit-Remaining": "4991", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "Server": "GitHub.com", "X-OAuth-Scopes": "admin:org, admin:public_key, admin:repo_hook, repo", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "X-Content-Type-Options": "nosniff", "Content-Encoding": "gzip", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "X-RateLimit-Limit": "5000", "Cache-Control": "private, max-age=60, s-maxage=60", "Content-Type": "application/json; charset=utf-8", "X-Accepted-OAuth-Scopes": "public_repo, repo", "X-RateLimit-Reset": "1476056241"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/issues/637"}, "recorded_at": "2016-10-09T23:20:38"}, {"request": {"body": {"string": "{\"title\": \"Integration test for editing an issue\", \"assignees\": [\"itsmemattchung\", \"sigmavirus24\"]}", "encoding": "utf-8"}, "headers": {"Content-Length": "99", "Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a4", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "PATCH", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/issues/637"}, "response": {"body": {"string": "", "base64_string": "H4sIAAAAAAAAA+1ZbW/bNhD+K6qADVsQmZbkOq4qO8AwDOi3fthQYElhUDItE5VIgaTsuUb++46kE0uqksayN/SDYfhF1N3D471QD887txK5G7krpUoZIYRLOsioWlXJIOUFEqTkEkmaFXhNRSWDEbJ3w0G5RVTKikg0Dm/ca9eIUsXFdt4fEnBynJBcnoBRMwtZsB1iuCAPAA5rKghT54J/hANksj4jrgUD1JUq8pYratF5VVzowo38if/OD0fjt9cuq4qECDeCoF27iqqcQPQ/MEUygRXlzFFEKmfJhUMWVFGWOZg5JtBgTiW16s7NeUYZ6FElC1JgpdJVxTIQ0JPdhG8n/jC4dvEaKyzakTSDcp9kGjDlMDtTJt8qtNe+XU9DwAOjLIgGdrUFL2WrRpPoG6NeduI34kue53wDSG3Lm6XRNRl60gVT7W/wYG8c0N0hrlYEnAhL0wmcUfm97O00zOjtoHilmtOFRpIQBkEWPYzba4JpGwZW7cwuYSCrRKaCljqP+nivoQ94XGSY0a8mL/vggb4EGLMz9Vin0QP915R2p9Ot4g6Vgq5xutUuEiQldA1u7w3aQgBMtS11Ef+lixOCQBWZ40WhC3SJc0keHvdUN7r7bOKutDgvCQPxnKdfCBSXEYWalbCpMAIClyo3G1LHlnKp8kuVH5566Iep8sfalVDol+q9VC883S/P6Bpd7tzLf5TqPRRsndXDA1oz32A0nITDnozaKp9AqFsGvUynW8JHkenGeaY3le5AOYVItw5ZJ9DoBtL5SHQTtk7B+1DoBtqxBLqhfDx9bqifpzBbFjXI9yuoM/DlguZwIuYMKDGr8vzQQ4BjNVwIAnR6MccKKHUw9MeeP/SG7/4M/CgcR/74b5ikKhfdMmEUDKNwomXSnMs9jJ0l4YvtXJca4Mbl7HeSE0Wcgjh4qYiIUTm7Z/csXgWzGMGHuShnnzBTjuJOgtMvjlpRaY/ut04sleAsm8XYWQmynN4/dXw2m80g4RVTW8krkRJzDt93dsJJMAonvu/ZZXpm2KOHboGnuwW3lSrmKS5KDEeHaZlX0Bz4GS7fm3F7up8qASYR8VPwhz8JRzc3TwIF9BmqYmpnfBq1tkzt7n3vzj5y6EpgxxrqQJuCqjcxwrD4/cKcT+CaNCWlskKUSGdNsfPKBf8fa/it5mVt+yBOBAROxxIywARckX90IrWirYOrX89Gt8s7zzmkbsVgP2/HlAImhHdcTw3Pxnamb3iep7+eNenq6q7Lqs+/PHYa/6O8ezHn9M1mvumRRq79enX1nOfu6q77zkI68+lk2wYmJKgrJoc9JNleDu+2e91J+HrzimajcN8EOIVZtAAvLbqjm7v2/wlI/d7dtPOwjFYkj2/RPfwLM2z5z4gZAAA=", "encoding": "utf-8"}, "headers": {"X-XSS-Protection": "1; mode=block", "Content-Security-Policy": "default-src 'none'", "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Transfer-Encoding": "chunked", "Access-Control-Allow-Origin": "*", "X-Frame-Options": "deny", "Status": "200 OK", "X-Served-By": "ef96c2e493b28ffea49b891b085ed2dd", "X-GitHub-Request-Id": "49C132BA:06D1:76BBFFA:57FAD0C6", "ETag": "W/\"abebbc3f56da4916056a740ba9c228cc\"", "Date": "Sun, 09 Oct 2016 23:20:38 GMT", "X-RateLimit-Remaining": "4990", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "Server": "GitHub.com", "X-OAuth-Scopes": "admin:org, admin:public_key, admin:repo_hook, repo", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "X-Content-Type-Options": "nosniff", "Content-Encoding": "gzip", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "X-RateLimit-Limit": "5000", "Cache-Control": "private, max-age=60, s-maxage=60", "Content-Type": "application/json; charset=utf-8", "X-Accepted-OAuth-Scopes": "public_repo, repo", "X-RateLimit-Reset": "1476056241"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/issues/637"}, "recorded_at": "2016-10-09T23:20:38"}], "recorded_with": "betamax/0.7.1"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.drax-preview+json", "User-Agent": "github3.py/1.0.0a4", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py"}, "response": {"body": {"string": "", "base64_string": "H4sIAAAAAAAAA62YXY/qNhCG/wrKbQEDgf2IVJ1+SW2lqjpqtzfVSshJDLHWiSPbgXKi/e/ndZyQhKqwu+4NguB5/Hrsmcy4DngaROH9cnG/XE6DguYsiII9N1kVh/PyFEyDXSXEtv1D831OD1xVerUmo1HyWDAVRHUg5J4XYAyHgmKnWa0XD+FiGtADNVRtKyUwLjOm1BEh7qGeO2qlmUpkYVhh5onMSUWc8afDtyFoe9UyLDbAgwtWyVuOMwZMkwtBmcnFhQQ3dWNyMXgnhZBHUC5F35qInC2tJxsKL/YfpMCyJtJkDL7Dkl6tI7g27xfVWNXYQG22PLUcjQ1RLH23sNYOsuz+v9ZEsVI2wCrWieKl4bJ4v8CRNWhS7WnBv9CP0WCtAbHS3i+lsYI1O+Asvt/cmdWkVPxAk5N1jWIJ4wc4+4PIC3sQzam0YfsXDoV1PTdsS9PchuGOCs1ep0EzvcGg5sEUUffW0z8O85SddxUTfj6ZTBYTwWNF1Wmyk2rCEbNqRxOc1ckRaWSC4zr5mZtfqnjy/edfDzZ6Me7lrORq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W6laHIhYYdoq3Bd1N8vFMwc0Up3Tmw8Nyzj2m0I169fAQOymlByFAAA", "encoding": "utf-8"}, "headers": {"X-XSS-Protection": "1; mode=block", "Content-Security-Policy": "default-src 'none'", "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Transfer-Encoding": "chunked", "Last-Modified": "Sat, 08 Oct 2016 17:15:55 GMT", "Access-Control-Allow-Origin": "*", "X-Frame-Options": "deny", "Status": "200 OK", "X-Served-By": "5aeb3f30c9e3ef6ef7bcbcddfd9a68f7", "X-GitHub-Request-Id": "49C132BA:06D1:7670BEB:57FAC760", "ETag": "W/\"a308533e64f30421e62ec9ffe5c766aa\"", "Date": "Sun, 09 Oct 2016 22:40:32 GMT", "X-RateLimit-Remaining": "4995", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "Server": "GitHub.com", "X-OAuth-Scopes": "admin:org, admin:public_key, admin:repo_hook, repo", "X-GitHub-Media-Type": "github.drax-preview; format=json", "X-Content-Type-Options": "nosniff", "Content-Encoding": "gzip", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "X-RateLimit-Limit": "5000", "Cache-Control": "private, max-age=60, s-maxage=60", "Content-Type": "application/json; charset=utf-8", "X-Accepted-OAuth-Scopes": "repo", "X-RateLimit-Reset": "1476056241"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/repos/sigmavirus24/github3.py"}, "recorded_at": "2016-10-09T22:40:32"}, {"request": {"body": {"string": "{\"body\": \"Delete me after\", \"assignees\": [\"itsmemattchung\", \"sigmavirus24\"], \"assignee\": \"itsmemattchung\", \"title\": \"Create Issue Integration Test\"}", "encoding": "utf-8"}, "headers": {"Content-Length": "148", "Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a4", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "POST", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/issues"}, "response": {"body": {"string": "{\"message\":\"You cannot pass both `assignee` and `assignees`. Only one may be provided.\",\"documentation_url\":\"https://developer.github.com/v3/issues/#create-an-issue\"}", "encoding": "utf-8"}, "headers": {"Status": "422 Unprocessable Entity", "Content-Length": "166", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "X-Content-Type-Options": "nosniff", "Content-Security-Policy": "default-src 'none'", "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "X-GitHub-Request-Id": "49C132BA:06D1:7670BFB:57FAC760", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-RateLimit-Remaining": "4994", "Server": "GitHub.com", "X-XSS-Protection": "1; mode=block", "X-RateLimit-Limit": "5000", "Access-Control-Allow-Origin": "*", "Date": "Sun, 09 Oct 2016 22:40:33 GMT", "X-OAuth-Scopes": "admin:org, admin:public_key, admin:repo_hook, repo", "Content-Type": "application/json; charset=utf-8", "X-Accepted-OAuth-Scopes": "", "X-Frame-Options": "deny", "X-RateLimit-Reset": "1476056241"}, "status": {"message": "Unprocessable Entity", "code": 422}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/issues"}, "recorded_at": "2016-10-09T22:40:33"}], "recorded_with": "betamax/0.7.1"}

0 commit comments

Comments
 (0)