Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions posts/forgejo-in-ogr/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: Forgejo is now supported in ogr
date: 2026-02-05T10:30:00+01:00
authors: akucerov
tags:
- Forgejo
- ogr
---

# Forgejo is now supported in ogr

We are happy to announce that the ogr library now supports yet another git forge — [Forgejo](https://forgejo.org/). As such, Forgejo marks the second currently supported open-source git forge (alongside Pagure), bringing the total number of supported forges to four. Thank you to all contributors ([mynk8](https://github.com/mynk8)) who helped to turn this part of the project into reality!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also gitlab is open source 🤔 So I would say it is the third. But I am not sure if I would focus on it.


<!-- truncate -->

# What is ogr?

[Ogr](https://github.com/packit/ogr) stands for **One Git library to Rule**. It is a library offering a unified API for multiple git forges, meaning that it makes it possible to communicate with all supported git forges using the same set of methods. Historically, the list of supported forges consisted of **GitHub**, **GitLab** and **Pagure**. This list has now been expanded to include **Forgejo** as well.

Here is a short example showcasing how to create a new issue in a repository using ogr:

```
from ogr import ForgejoService

service = ForgejoService(instance_url="https://codeberg.org", token="...")
project = service.get_project(namespace="owner", repo="repo")

project.create_issue(title="Issue title", body="Issue description")
```

For more information see our [documentation](https://packit.github.io/ogr/) and [Jupyter notebook examples](https://github.com/packit/ogr/tree/main/examples).

# What this means for Packit

With the added support of Forgejo in ogr, it is now possible for us to work on support of Forgejo as dist-git in Packit. If interested, you can track our progress on the upcoming addition in [this epic](https://github.com/packit/packit-service/issues/2861).
Loading