Skip to content

rename body to data in request options #296

Open
@gr2m

Description

@gr2m

The endpoint() method currently returns body as the key holding the request body. We should rename it to data to align with data parameter in @octokit/request: https://github.com/octokit/request.js/#the-data-parameter--set-request-body-directly

We can start by setting both .data and .body and then logging a deprecation message when .body is accessed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Breaking changeUsed to note any change that requires a major version bumpType: MaintenanceAny dependency, housekeeping, and clean up Issue or PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions