by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Alex Adusei
    @alexadusei

    Ah that’s unfortunate. Are there any workarounds for this? I hear mentioning of using the Git Database API for it.

    https://developer.github.com/v3/git/#introducing-the-git-database-api

    Maarten Fonville
    @mfonville
    Alex Adusei
    @alexadusei
    probably going outside the scope of PyGithub, but just curious
    Maarten Fonville
    @mfonville
    afaik indeed outside the scope
    Alex Adusei
    @alexadusei
    Fair enough, I’ll take a look. Thanks!
    Maarten Fonville
    @mfonville
    but might implementable with expanding pygithub and using a git library for python
    Alex Adusei
    @alexadusei
    Any suggestions? I’ve been looking at this for a bit today.. not many leads (or documentation from GitHub on this)
    Maarten Fonville
    @mfonville
    sorry, I don't have any suggestions. Maybe @sfdye has...?
    Wan Liuyang
    @sfdye
    sorry i missed the message earlier
    i am not sure github is the right place for this kind of tasks though
    maybe s3?
    Alex Adusei
    @alexadusei
    Yeah I might look into that. Just thought there’d be some sort of way to do exactly what Github offers, just with multiple files. I’m curious about it, as they’ve implemented this functionalit with Git Database API
    but i’ll look into alternatives, thanks a lot, guys
    Wan Liuyang
    @sfdye
    PyGithub works well for that, but seems like you can only commit one file at a time
    you can’t call upload_file multiple times?
    Antonio Vilches
    @avilchess
    Hi Guys, I need to hit the GitHub API, so I´m considerig using this python library for extracting the last TAG from a public github repository. Could I do that without authenticating? Like here: g = Github("user", "password")
    Wan Liuyang
    @sfdye
    simple answer, you can’t. if you want to use this library, you have to authenticate either using username/password or a valid token. also note that without authentication, you get lower rate limit. if it’s just one simple API call, maybe you can consider use requests to make a direct HTTP call?
    Antonio Vilches
    @avilchess
    That´s what I thought, I was just looking for an alternative to hit the endpoints of the API that do not require authentication. Thanks for the quick response.
    Wan Liuyang
    @sfdye
    Sure, no problem then
    Alex Adusei
    @alexadusei
    @sfdye You can, but when you call upload_file, it does the upload AND it commits. I’ll be having an upperbound of 8,000 files per session, and I believe the GitHub API has a rate limit of 1,000, so it’d be ideal to stage 8,000 files, and commit/push those files once
    Wan Liuyang
    @sfdye
    compress the files before upload?
    Daniel Cordell
    @DanielCordell
    Hey, I was wondering if we could add custom headers to existing PyGithub requests, or if there was any way for us to make a custom request through PyGithub?
    https://developer.github.com/changes/2012-12-10-Diff-and-patch-media-types/ Trying to get the .patch of a commit, doesn't seem to be an immediately obvious way without just making the request myself
    Wan Liuyang
    @sfdye
    @DanielCordell not that i know of, what API are you trying to use?
    Daniel Cordell
    @DanielCordell
    Right now I'm just getting a commit, I'd like to be able to get a commit's patch which can be done from the API with "application/vnd.github.patch" in the "Accept" header.
    Was wondering if PyGithub had any means of sending custom headers/requests
    Wan Liuyang
    @sfdye
    actually you can, just need to modify the get_commit method
    by adding the custom header, should be just one line of change
    a lot of other methods use custom header as well
    Daniel Cordell
    @DanielCordell
    okay, I'll have a look, thanks :)
    Corey Smith
    @CoreySmithRing
    Hi everyone, Im seeking two things at the moment first of which being can I pull the users linked to an external SAML IDP. The github UI has a filter for users that are linked I just have been unsuccessful in find that attribute in the namedUser attribute. Also if this is not the correct place to ask for help please let me know. Thanks!
    Oskar Roesler
    @bionade24
    Hi, I don't find the way to authorize for an Organisation. Where is the var for the API_key?
    Bluscream
    @Bluscream
    Hello
    Is anyone here?
    Bluscream
    @Bluscream
    I want to get the parent of a forked repo
    How do i do that
    repos = 0
    processed = 0
    me = g.get_user()
    for repo in me.get_repos():
        if not repo.fork: continue
        repos += 1
        forks = repo.get_forks()
        print(repo.name)
        for fork in forks:
            print("\t", fork)
        if repos > 3: exit()
    print("Repositories processed: %s"%repos)
    Wan Liuyang
    @sfdye
    don’t think it’s possible
    Julien
    @juli1
    hey folks - does PyGitHub supports authentication with github apps?
    Oskar Roesler
    @bionade24
    No, you need a OAuth API key or can create one with username and password.
    Felipe Faraggi
    @faraggi
    Hi everyone, What method should I call to know if a slug is a team/project/org/user?
    Felipe Faraggi
    @faraggi
    ...or should I use a try expect block (or several of them) until I get a result?
    This is when probing a list of github urls I have.
    Felipe Faraggi
    @faraggi
    I'm stil stuck with knowing what type of account an endpoint is
    I'm getting lots of UnknownObjectExceptions
    Wan Liuyang
    @sfdye
    Hi future question please post to slack
    gitter is no long maintained
    Felipe Faraggi
    @faraggi
    Hi Wan, thanks. I posted on both in case someone saw it on either platform.
    Ben Jefferies
    @benjefferies
    Hi, I'm looking to update the enforce_admins property for branch protection and can see that most operations are read-only. Is this by design or would a PR to allow you to set enforce_admins be welcome?
    Graziano Castellano
    @grazianocastellano
    Hi guys, i'm using pygithub and i'd like to know if there is a way to get all the issues solved ? Thanks for your help