Skip to content

Releases: packit/ogr

0.41.0

27 Oct 10:53
67470ef

Choose a tag to compare

  • CommitComment.comment has been deprecated in favour of CommitComment.body to make the naming consistent across objects. (#748)
  • ogr now requires Python 3.9 or later. (#746)

0.40.0

16 Sep 11:41
d4ffd97

Choose a tag to compare

  • Using the method users_with_write_access you can generate the set of users that have write access to the project and the method has_write_access(user) you can find out if the user has write access to the project. (#742)

0.39.0

08 Sep 12:58
332720e

Choose a tag to compare

  • We have implemented the closed_by property for the Pagure pull request for getting the login of the account that closed the pull request. (#718)

0.38.1

29 Apr 12:19
3fd7075

Choose a tag to compare

  • 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 missing pkg_resources.

0.38.0

28 Apr 10:14
21f5740

Choose a tag to compare

  • 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

31 Mar 06:31
318175d

Choose a tag to compare

  • We have added a new optional parameter, namespace, to the fork_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 superclass APIException 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 raises IssueTrackerDisabled when the project doesn't have issues
    enabled. (#684)

0.36.0

16 Mar 11:18
b052da6

Choose a tag to compare

  • Release class has been reworked and create_release has been made part of the API for GitProject. (#670)
  • Factory method for acquiring project or service class from URL has been improved by checking just the hostname for determining the service. (#682)

0.35.0

16 Feb 12:57
338302a

Choose a tag to compare

  • We have added target_branch_head_commit property to the PullRequest
    class in ogr 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

05 Jan 09:14
785c5d5

Choose a tag to compare

  • We have introduced a new function into ogr that allows you to get commit SHA of the HEAD of the branch. (#668)
  • A list of Gitlab projects provided by GitlabService.list_projects() now contains objects with additional metadata. (#667)

0.33.0

10 Dec 11:54
e54670c

Choose a tag to compare

  • OGR now fully supports getting PR comments by its ID.