-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Comparing changes
Open a pull request
base repository: PyGithub/PyGithub
base: 8508735
head repository: PyGithub/PyGithub
compare: 19ddb9f
- 16 commits
- 85 files changed
- 7 contributors
Commits on Sep 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c91f26a - Browse repository at this point
Copy the full SHA c91f26aView commit details
Commits on Oct 9, 2024
-
Marking an issue as stale and closing it does not add any value to this project.
Configuration menu - View commit details
-
Copy full SHA for 510c140 - Browse repository at this point
Copy the full SHA 510c140View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1a05b43 - Browse repository at this point
Copy the full SHA 1a05b43View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for c44ec52 - Browse repository at this point
Copy the full SHA c44ec52View commit details
Commits on Oct 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0d395d4 - Browse repository at this point
Copy the full SHA 0d395d4View commit details
Commits on Oct 27, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for e1d67ad - Browse repository at this point
Copy the full SHA e1d67adView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 612ba68 - Browse repository at this point
Copy the full SHA 612ba68View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for cf44395 - Browse repository at this point
Copy the full SHA cf44395View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 352c55a - Browse repository at this point
Copy the full SHA 352c55aView commit details -
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 
Configuration menu - View commit details
-
Copy full SHA for 72fa627 - Browse repository at this point
Copy the full SHA 72fa627View commit details
Commits on Oct 28, 2024
-
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)
Configuration menu - View commit details
-
Copy full SHA for 2722225 - Browse repository at this point
Copy the full SHA 2722225View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for cd30e37 - Browse repository at this point
Copy the full SHA cd30e37View commit details
Commits on Oct 29, 2024
-
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>
Configuration menu - View commit details
-
Copy full SHA for 29359f3 - Browse repository at this point
Copy the full SHA 29359f3View commit details
Commits on Nov 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 323e282 - Browse repository at this point
Copy the full SHA 323e282View commit details
Commits on Nov 6, 2024
-
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>
Configuration menu - View commit details
-
Copy full SHA for 44120b1 - Browse repository at this point
Copy the full SHA 44120b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19ddb9f - Browse repository at this point
Copy the full SHA 19ddb9fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 8508735...19ddb9f