-
Notifications
You must be signed in to change notification settings - Fork 54
Add blog post regarding Forgejo in ogr #1099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
betulependule
wants to merge
6
commits into
packit:main
Choose a base branch
from
betulependule:forgejo-in-ogr-blog-post
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+35
−0
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
505f72e
Add blog post regarding Forgejo in ogr
betulependule 05dfe51
Add links to Forgejo and ogr
betulependule 72f3414
Mention contributor(s) directly
betulependule 185ced4
Add link to docs, Jupyter examples and add code snippet
betulependule 810ee7a
Add mention of upcoming Forgejo as dist-git support
betulependule 4f5043d
Improve wording
betulependule File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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! | ||
|
|
||
| <!-- 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). | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.