1
0
Fork 0
Beyond coding. We forge. https://codeberg.org/forgejo/forgejo
Find a file
Sebastian Brückner 542badbb76
Properly migrate automatic merge GitLab comments (#27873)
GitLab generates "system notes" whenever an event happens within the
platform. Unlike Gitea, those events are stored and retrieved as text
comments with no semantic details. The only way to tell whether a
comment was generated in this manner is the `system` flag on the note
type.

This PR adds detection for two specific kinds of events: Scheduling and
un-scheduling of automatic merges on a PR. When detected, they are
downloaded using Gitea's type for these events, and eventually uploaded
into Gitea in the expected format, i.e. with no text content in the
comment.

This PR also updates the template used to render comments to add support
for migrated comments of these two types.

ref:
11bd6dc826/app/services/system_notes/merge_requests_service.rb (L6-L17)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit a70c00b80bcb5de8479e407f1b8f08dcf756019d)
2024-02-26 22:30:26 +01:00
.devcontainer
.forgejo [CI] run frontend checks 2024-02-25 23:08:09 +01:00
.gitea
assets
build [FRONTEND] move the gitea svg to web_src/svg 2024-02-25 23:41:33 +01:00
cmd Refactor cmd setup and remove deadcode (#29313) 2024-02-26 22:30:25 +01:00
contrib
custom/conf Allow instance-wide disabling of forking 2024-02-25 12:00:17 +01:00
docker
docs
manual-testing@877d11b403
models Workaround to clean up old reviews on creating a new one (#28554) 2024-02-26 21:42:14 +01:00
modules Discard unread data of git cat-file (#29297) 2024-02-26 22:30:25 +01:00
options [skip ci] Updated translations via Crowdin 2024-02-26 22:30:25 +01:00
public Update Discord logo (#29285) 2024-02-26 21:42:15 +01:00
releases/images
routers Fix error display when merging PRs (#29288) 2024-02-26 22:30:25 +01:00
services Properly migrate automatic merge GitLab comments (#27873) 2024-02-26 22:30:26 +01:00
snap
templates Properly migrate automatic merge GitLab comments (#27873) 2024-02-26 22:30:26 +01:00
tests Prevent double use of git cat-file session. (#29298) 2024-02-26 22:30:25 +01:00
web_src Revert #28753 because UI broken. (#29293) 2024-02-26 22:30:25 +01:00
.air.toml
.changelog.yml
.deadcode-out
.dockerignore [RELEASE] cache node_modules 2024-02-19 14:18:26 +01:00
.editorconfig
.eslintrc.yaml Remove jQuery .map() and enable eslint rules for it (#29272) 2024-02-26 21:42:15 +01:00
.gitattributes
.gitignore
.gitmodules
.gitpod.yml
.golangci.yml
.ignore
.markdownlint.yaml
.npmrc
.spectral.yaml
.stylelintrc.yaml
.yamllint.yaml
BSDmakefile
build.go
CHANGELOG.md
CODEOWNERS
CONTRIBUTING.md
DCO
Dockerfile [RELEASE] cache node_modules 2024-02-19 14:18:26 +01:00
Dockerfile.rootless [RELEASE] cache node_modules 2024-02-19 14:18:26 +01:00
go.mod
go.sum
LICENSE
main.go
MAINTAINERS
Makefile Don't install playwright twice (#29302) 2024-02-26 22:30:25 +01:00
package-lock.json [FRONTEND] package-lock.json is named as forgejo 2024-02-25 23:40:54 +01:00
package.json
playwright.config.js Merge pull request 'Do not run e2e tests in parallel' (#2440) from maltejur/forgejo:e2e_parallel into forgejo 2024-02-22 18:57:05 +00:00
poetry.lock
poetry.toml
pyproject.toml
README.md
RELEASE-NOTES.md [RELEASE] v1.21.6-0 release notes 2024-02-22 14:22:32 +01:00
vitest.config.js
webpack.config.js

Welcome to Forgejo

Hi there! Tired of big platforms playing monopoly? Providing Git hosting for your project, friends, company or community? Forgejo (/for'd͡ʒe.jo/ inspired by forĝejo the Esperanto word for forge) has you covered with its intuitive interface, light and easy hosting and a lot of builtin functionality.

Forgejo was created in 2022 because we think that the project should be owned by an independent community. If you second that, then Forgejo is for you! Our promise: Independent Free/Libre Software forever!

What does Forgejo offer?

If you like any of the following, Forgejo is literally meant for you:

  • Lightweight: Forgejo can easily be hosted on nearly every machine. Running on a Raspberry? Small cloud instance? No problem!
  • Project management: Besides Git hosting, Forgejo offers issues, pull requests, wikis, kanban boards and much more to coordinate with your team.
  • Publishing: Have something to share? Use releases to host your software for download, or use the package registry to publish it for docker, npm and many other package managers.
  • Customizable: Want to change your look? Change some settings? There are many config switches to make Forgejo work exactly like you want.
  • Powerful: Organizations & team permissions, CI integration, Code Search, LDAP, OAuth and much more. If you have advanced needs, Forgejo has you covered.
  • Privacy: From update checker to default settings: Forgejo is built to be privacy first for you and your crew.
  • Federation: (WIP) We are actively working to connect software forges with each other through ActivityPub, and create a collaborative network of personal instances.

Learn more

Dive into the documentation, subscribe to releases and blog post on our website, find us on the Fediverse or hop into our Matrix room if you have any questions or want to get involved.

Get involved

If you are interested in making Forgejo better, either by reporting a bug or by changing the governance, please take a look at the contribution guide.