Skip to content

Using a Preview API should activate that Preview for all related method calls on that GitHub instance #1017

Closed

Description

@bitwiseman

Currently, Preview methods are only enabled on specific methods but their usage is otherwise untracked.

This means that if I'm checking if any of my repositories are templates, this code will result in an additional api call for every check regardless of how many times I do it.

Instead, GitHub should track which Previews have been used and related methods should have a withOptionalPreview() call that will add a Preview to api call if it has been used for other api calls via withPreview(). In this case, read() or populate() should have ``withOptionalPreview(BAPTISTE)`.

Activity

  1. bitwiseman commented on Nov 30, 2023

    @bitwiseman
    MemberAuthor

    No longer needed. Almost all previews have be graduated. There is a new system for API versioning in GithHub. We will need to do something similar to this issue for the new scheme.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions