Skip to content

Allow getting README contents in different formats #474

Closed

Description

@BR0kEN-

For now, with API v3, we can get the contents of README.md in raw format or as rendered html. To do so request should contain Accept header with one of values described in documentation: https://developer.github.com/v3/repos/contents/#custom-media-types.

My proposition - is to add the third argument ($format = 'raw') to the readme() method of \Github\Api\Repo class and empower the request with necessary header.

Activity

  1. added a commit that references this issue on Dec 2, 2016
  2. Nyholm commented on Dec 4, 2016

    @Nyholm
    Collaborator

    This can be closed.

  3. BR0kEN- commented on Dec 4, 2016

    @BR0kEN-
    ContributorAuthor

    PR is merged, - so yep, can be. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions