Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sigmavirus24/github3.py
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: benjefferies/github3.py
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Nov 13, 2019

  1. Remove headers dict

    Remove dict as it's in the wrong format and was causing the error
    
    ```
    Traceback (most recent call last):
      File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 2060, in <module>
        main()
      File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 2054, in main
        globals = debugger.run(setup['file'], None, None, is_module)
      File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1405, in run
        return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
      File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1412, in _exec
        pydev_imports.execfile(file, globals, locals)  # execute the script
      File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
        exec(compile(contents+"\n", file, 'exec'), glob, loc)
      File "/Users/benjefferies/source/github/benjefferies/branch-protection-bot/run.py", line 35, in <module>
        toggle_enforce_admin(options.access_token, options.owner, options.repo, options.branch)
      File "/Users/benjefferies/source/github/benjefferies/branch-protection-bot/run.py", line 24, in toggle_enforce_admin
        protection.enforce_admins.enable()
      File "/Users/benjefferies/.virtualenvs/branch-protection-bot-va0BIfgL/lib/python3.6/site-packages/github3/decorators.py", line 31, in auth_wrapper
        return func(self, *args, **kwargs)
      File "/Users/benjefferies/.virtualenvs/branch-protection-bot-va0BIfgL/lib/python3.6/site-packages/github3/repos/branch.py", line 410, in enable
        self._api, headers=BranchProtection.PREVIEW_HEADERS_MAP
      File "/Users/benjefferies/.virtualenvs/branch-protection-bot-va0BIfgL/lib/python3.6/site-packages/github3/models.py", line 222, in _post
        return self._request("post", url, data, **kwargs)
      File "/Users/benjefferies/.virtualenvs/branch-protection-bot-va0BIfgL/lib/python3.6/site-packages/github3/models.py", line 204, in _request
        raise exceptions.TransportError(exc)
    github3.exceptions.TransportError: <class 'requests.exceptions.InvalidHeader'>: An error occurred while making a request to GitHub: Value for header {required_approving_review_count: {'Accept': 'application/vnd.github.luke-cage-preview+json'}} must be of type str or bytes, not <class 'dict'>
    
    ```
    benjefferies committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    f5debf0 View commit details
    Browse the repository at this point in the history
  2. Fix tests

    benjefferies committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    4fa8b9b View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2019

  1. Configuration menu
    Copy the full SHA
    118e3ee View commit details
    Browse the repository at this point in the history
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy