rename body
to data
in request options
#296
Labels
Type: Breaking change
Used to note any change that requires a major version bump
Type: Maintenance
Any dependency, housekeeping, and clean up Issue or PR
The
endpoint()
method currently returnsbody
as the key holding the request body. We should rename it todata
to align withdata
parameter in@octokit/request
: https://github.com/octokit/request.js/#the-data-parameter--set-request-body-directlyWe can start by setting both
.data
and.body
and then logging a deprecation message when.body
is accessed.The text was updated successfully, but these errors were encountered: