Skip to content

Reads are hard-coded to master (not main) #5

Description

@simonw

You can't even read content from the main branch at the moment. Relates to #3.

Activity

  1. simonw commented on Feb 24, 2021

    @simonw
    OwnerAuthor

    Should also detect the principal branch on a repo if you don't specify one.

  2. simonw commented on Feb 24, 2021

    @simonw
    OwnerAuthor

    Here's a method that can detect the default branch (using a JSON key that was added to GitHub at some point since I last recorded the betamax cassettes in this repo):

        def detect_default_branch(self):
            return self.session.get(self.base_url(), headers=self.headers()).json()[
                "default_branch"
            ]
  3. added a commit that references this issue on Feb 24, 2021
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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions