commit: 23b595a77ceb4ca6d4e0dc892ea5d6a1f8b60b40 Author: Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz> AuthorDate: Tue Feb 17 14:44:53 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Feb 17 17:35:00 2026 +0000 URL: https://gitweb.gentoo.org/proj/assign-pull-requests.git/commit/?id=23b595a7
codeberg: suggest non-AGit users to switch The pr["flow"] entry in the JSON payload for a PR tells us whether the PR was opened using AGit (1) or the "normal" way (0). If not using AGit, add a section to the comment suggesting the user to use AGit. Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz> Part-of: https://github.com/gentoo/assign-pull-requests/pull/7 Closes: https://github.com/gentoo/assign-pull-requests/pull/7 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> assign-pull-requests-codeberg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assign-pull-requests-codeberg.py b/assign-pull-requests-codeberg.py index 1cf7b24..42cba47 100644 --- a/assign-pull-requests-codeberg.py +++ b/assign-pull-requests-codeberg.py @@ -369,6 +369,9 @@ def assign_one( if missing_signoff: body += "\n\n## Missing GCO sign-off\n\nPlease read the terms of [Gentoo Certificate of Origin](https://www.gentoo.org/glep/glep-0076.html#certificate-of-origin) and acknowledge them by adding a sign-off to *all* your commits. The sign-off MUST include the email address of the git committer." + if pr["flow"] == 0: + body += "\n\n## Not using AGit\n\nThis Pull Request is not using the [AGit](https://forgejo.org/docs/latest/user/agit-support/) workflow. If you are maintaining a fork of this repository solely for opening pull requests, consider switching to the AGit workflow as it is more space-efficient (and delete the fork)." + body += "\n\n---\nIn order to force reassignment and/or bug reference scan, please append `[please reassign]` to the pull request title.\n\n*Docs*: [Code of Conduct](https://wiki.gentoo.org/wiki/Project:Council/Code_of_conduct) ● [Copyright policy](https://www.gentoo.org/glep/glep-0076.html) ([expl.](https://dev.gentoo.org/~mgorny/articles/new-gentoo-copyright-policy-explained.html)) ● [Devmanual](https://devmanual.gentoo.org/) ● [Codeberg PRs](https://wiki.gentoo.org/wiki/Project:Codeberg/Pull_requests) ● [Proxy-maint guide](https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers/User_Guide)" # finally! post comment...
