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: PyGithub/PyGithub
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8508735
Choose a base ref
...
head repository: PyGithub/PyGithub
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 19ddb9f
Choose a head ref
  • 16 commits
  • 85 files changed
  • 7 contributors

Commits on Sep 19, 2024

  1. Configuration menu
    Copy the full SHA
    c91f26a View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Remove stale bot

    Marking an issue as stale and closing it does not add any value to this project.
    EnricoMi authored Oct 9, 2024
    Configuration menu
    Copy the full SHA
    510c140 View commit details
    Browse the repository at this point in the history
  2. avoid pre-commit action in order to pin pre-commit (#3059)

    mainly to pin pre-commit for now
    
    pre-commit action doesn't save much, and relinquishes some control
    
    fixes #3058
    minrk authored Oct 9, 2024
    Configuration menu
    Copy the full SHA
    1a05b43 View commit details
    Browse the repository at this point in the history
  3. Make requester a public attribute (#3056)

    There will always be new APIs not yet supported by PyGitHub (e.g.
    #2718). This adds an escape hatch for users to send requests directly
    without having to start from scratch or use private APIs while waiting
    for PyGitHub to add support.
    
    Changes: 
    
    - private `object._requester` `.__requester` is now available via public
    `.requester` attribute on MainClass, GitHubObject, etc.
    - add Requester APIs to docs as public methods, indicating status as
    stable public APIs
    
    Fixes #2071 which received only positive feedback, but was closed for
    inactivity.
    
    ---------
    
    Co-authored-by: Enrico Minack <github@enrico.minack.dev>
    minrk and EnricoMi authored Oct 9, 2024
    Configuration menu
    Copy the full SHA
    c44ec52 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. Configuration menu
    Copy the full SHA
    0d395d4 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Fix requesting urls containing parameters with parameters dict (#2929)

    Requesting an url that contains parameters (query part of the url) did
    not support giving a parameters dict:
    
    Requester.requestJson(verb, "https://api.github.com/?per_page=10",
    {"per_page": 20})
    
    Now, parameters given in the URL have precedence over the dict.
    
    Iterating over reversed `PaginatedList` is affected by this.
    
    Fixes #1136.
    EnricoMi authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    e1d67ad View commit details
    Browse the repository at this point in the history
  2. Add actor property to WorkflowRun (#2764)

    The GitHub API [returns an `actor` field when listing workflow
    runs](https://docs.github.com/en/free-pro-team@latest/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow)
    but `WorkflowRun` does not include `actor`.
    
    This PR adds the `actor` property of `NamedUser` type.
    
    Not sure about field ordering conventions so just followed the API
    response schema.
    gbhand authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    612ba68 View commit details
    Browse the repository at this point in the history
  3. Adds List organization memberships for the authenticated user (#3040)

    This endpoint described in [the
    docs](https://docs.github.com/en/rest/orgs/members?apiVersion=2022-11-28#list-organization-memberships-for-the-authenticated-user)
    was missing. This adds it as a method in the AuthenticatedUser class
    which returns a list of Memeberships.
    eduramirezh authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    cf44395 View commit details
    Browse the repository at this point in the history
  4. Make tests pass some more years (#3045)

    Without this patch, tests fail after 2024-11-25.
    
    Background:
    As part of my work on reproducible builds for openSUSE, I check that
    software still gives identical build results in the future.
    The usual offset is +16 years, because that is how long I expect some
    software will be used in some places.
    This showed up failing tests in our python-PyGithub package build.
    See https://reproducible-builds.org/ for why this matters.
    
    ---------
    
    Co-authored-by: Enrico Minack <github@enrico.minack.dev>
    bmwiedemann and EnricoMi authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    352c55a View commit details
    Browse the repository at this point in the history
  5. PullRequest.delete_branch: fix the remaining pull requests check (#3063)

    ### Problem
    `delete_branch(force=False)` raises a `RuntimeError` if the repository
    has any open pull requests because the current check used for remaining
    open pull requests returns all open pull requests for the repository
    instead of only the open pull requests associated with the pull
    request's branch.
    
    ### Fix
    Updating this to use the format of `user:ref-name` or
    `organization:ref-name` appropriately gets open pull requests for the
    pull request's branch.
    
    ```
    remaining_pulls = self.head.repo.get_pulls(head=f"{self.head.repo.owner.login}:{self.head.ref}")
    ```
    
    > [!NOTE]
    > See: #3031
    > From docs:
    https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests
    ![Screenshot 2024-10-17 at 3 13
    20 PM](https://github.com/user-attachments/assets/d0fbe8e9-09f3-42cc-8dd9-716418de2387)
    fetsko authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    72fa627 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2024

  1. Rework GraphQL mutations (#3046)

    This contains the following breaking changes:
    - use mutation name as given in Github GraphQL documentation
    - remove capitalized mutation name from mutation request
    - rename `variables` argument to `mutation_input`
    - rename `output` argument to `output_schema`
    - return response data according to output schema (drop outer
    data.mutationName path)
    EnricoMi authored Oct 28, 2024
    Configuration menu
    Copy the full SHA
    2722225 View commit details
    Browse the repository at this point in the history
  2. Make pagination work with GraphQL response data (#3047)

    This allows to create paginated lists of `GithubObject`s from data retrieved from the GraphQL API.
    
    ---------
    
    Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
    EnricoMi and tiangolo authored Oct 28, 2024
    Configuration menu
    Copy the full SHA
    cd30e37 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. Add RepositoryDiscussion powered by GraphQL API (#3048)

    Adds `RepositoryDiscussion`, `RepositoryDiscussionComment` and
    `RepositoryDiscussionCategory` as pure GraphQL API classes. Retrieved
    GraphQL data with user-defined schema can be used to populate those
    GraphQL objects and inner REST API objects (all other existing PyGithub
    classes).
    
    Fixes #2283.
    
    ---------
    
    Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
    EnricoMi and tiangolo authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    29359f3 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. Configuration menu
    Copy the full SHA
    323e282 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Add support for Repository.get_discussion() to get a single Discuss…

    …ion (#3072)
    
    ✨ Add support for `Repository.get_discussion()` to get a single Discussion
    
    ---------
    
    Co-authored-by: Enrico Minack <github@enrico.minack.dev>
    tiangolo and EnricoMi authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    44120b1 View commit details
    Browse the repository at this point in the history
  2. Release v2.5.0 (#3079)

    EnricoMi authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    19ddb9f View commit details
    Browse the repository at this point in the history
Loading