Releases: packit/ogr
Releases · packit/ogr
0.38.1
- When using Tokman as GitHub authentication mechanism, ogr will now raise GithubAppNotInstalledError instead of failing with generic GithubAPIException when app providing tokens is not installed on the repository.
- Use the standard library instead of setuptools for getting the version on Python 3.8+,
or a smaller package on older Pythons.
This also fixes the packaging issue with missingpkg_resources
.
0.38.0
- ogr now correctly raises
OgrException
when given invalid URL to
PagureService.get_project_from_url
. (#705) - We have fixed a bug in ogr that caused
IssueTrackerDisabled
being raised
only when trying to create an issue on git project with disabled issue
tracker. Now it is also raised when getting a specific issue or
an issue list. (#703)
0.37.0
- We have added a new optional parameter,
namespace
, to thefork_create
method on Git projects, which allows you to
fork a project into a specific namespace. (Forking to namespaces is not allowed on Pagure.) (#685) - We have implemented a
get_contributors
function that can be used to get the contributors of a GitHub
(set of logins) and GitLab (set of authors) project. (#692) - We have introduced a new exception class
GitForgeInternalError
that indicates a failure that happened within the forge
(indicated via 50x status code).\*APIException
have been given a new superclassAPIException
that provides status
code from forge (in case of error, invalid operation, etc.). (#690) - We have added a new property to git projects,
has_issues
, that indicates whether project has enabled issues or not.
Following up on the property,create_issue
now raisesIssueTrackerDisabled
when the project doesn't have issues
enabled. (#684)
0.36.0
0.35.0
- We have added
target_branch_head_commit
property to thePullRequest
class inogr
that allows you to get commit hash of the HEAD of the
target branch (i.e. base, where the changes are merged to).
0.34.0
0.33.0
0.32.0
- Removal of features which have been marked as deprecated since
0.14.0
.- Removal of renamed properties
Comment.comment
->Comment.body
BasePullRequest.project
->BasePullRequest.target_project
- Removal of methods for accessing issues or pull requests from
GitProject
class. - String can no longer be used as commit status,
CommitStatus
is now required. PullRequest
constructor has been refactored. In order to use static and offline
representation of a pull request, usePullRequestReadOnly
instead.
- Removal of renamed properties
GithubCheckRun.app
property has been added for accessingGithubApp
.
0.31.0
- Ogr now catches internal exceptions from Gitlab and Github and converts them
to ogr exceptions, GitlabAPIException and GithubAPIException, respectively. A
new exception, OgrNetworkError, has been introduced for signalling situations
where a request could not be performed due to a network outage. (#642) - The documentation was converted to Google-style docstrings. (#646)
- Releases and development builds of ogr are now built in copr projects
packit/packit-dev and packit/packit-releases. (#644)