ogr
ogr copied to clipboard
One Git library to Rule -- one API for many git forges
Signed-off-by: Matej Focko
I'd like to use this functionality in hardly. `http POST https://pagure.io/api/0/ogr-tests/pull-request/16/close 'Authorization:token my-token'` still returns `"Invalid or expired token..."` even I just generated it with all ACLs. In case it...
Discovered in: packit/ogr#759 Cause: An exception is raised when querying the users with permissions on a project, if the current user accessing the API doesn't have any permission themselves. However...
When we [load service instances from a dictionary](https://github.com/packit/ogr/blob/main/ogr/factory.py#L165) I'd like to be able to load an account name associated with the token so that I could use it later. There...
Some of these fixes are not perfect, in a few places I added `Optional` where I feel it shouldn't really be. However, it's not really possible any other way without...
Utilize https://github.com/thoth-station/thamos
1. remove [`--no-strict-optional` from pre-commit-config](https://github.com/packit/ogr/blob/1e7d9320c9df1a10aecce815f339c3b85c7471e5/.pre-commit-config.yaml#L41) 2. run `pre-commit run --all-files` 3. fix all errors https://mypy.readthedocs.io/en/stable/kinds_of_types.html#no-strict-optional See also packit/packit#1548 & packit/packit-service#1433
*Updated by @lachmanfrantisek :* We have a lot of methods related to the permissions (e.g. who can merge/close,..) It's not consistent, let's clean that! Feel free to solve this in...
Fix #856
Related to #856 TODO: - [x] Write new tests or update the old ones to cover new functionality. - [x] Update doc-strings where appropriate. - [x] Update or write new...
updates: - [github.com/teemtee/tmt.git: 1.35.0 → 1.36.0](https://github.com/teemtee/tmt.git/compare/1.35.0...1.36.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.6.7)