Skip to content

docs(#3193): add Forgejo dist-git message requirements - #3194

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3193-forgejo-message-requirements
Open

fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3193-forgejo-message-requirements

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

  • Add docs/forgejo-message-requirements.md documenting the message formats, topic names, and required fields that Packit expects from Forgejo dist-git messages arriving via Fedora Messaging.
  • Covers all four event types: push, pull request, issue/PR comment, and action run events.
  • Compiled by auditing the Forgejo event parsers in packit_service.worker.parser and the event classes in packit_service.events.forgejo.

Motivation

Packit's codebase currently assumes Forgejo dist-git messages follow a specific format, but that format is not documented anywhere. The Fedora Forge team has asked Packit to provide a list of requirements so they can verify compatibility. This document serves as that reference.

Testing

  • This is a documentation-only change (a single new Markdown file). No production code was modified.
  • Verified the file passes prettier formatting and standard pre-commit checks (trailing whitespace, end-of-file newline, merge conflict markers).

Closes #3193

Post-script verification

  • Branch is not main/master (agent/3193-forgejo-message-requirements)
  • Secret scan passed (gitleaks — e4e3d293b352520241d3206b374c2e06e8e9399c..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

Document the message formats, topic names, and required
fields that Packit expects from Forgejo dist-git messages
delivered via Fedora Messaging. The document covers all
four event types (push, pull request, issue/PR comment,
and action run) and was compiled by auditing the parsers
in packit_service.worker.parser and the event classes in
packit_service.events.forgejo.

This document is intended to be shared with the Fedora
Forge team so they can verify compatibility.

Note: pre-commit hooks were not fully run. pre-commit
could not complete (network access denied for fetching
remote hook repos). prettier was run directly on the
changed file. Other hooks (ruff, mypy, shellcheck) do
not apply to Markdown files.

Closes #3193
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner September 23, 2026 08:38
@fullsend-ai-coder
fullsend-ai-coder Bot requested review from majamassarini and removed request for a team September 23, 2026 08:38
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Sep 23, 2026
@centosinfra-prod-github-app

Copy link
Copy Markdown
Contributor

@betulependule betulependule left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a helpful summary of the functionality of our current Forgejo parsers, but I wouldn't call it a list of requirements. A list of requirements should include what kind of information we actually require to be present in the payload for Packit to be able to do its job.

This document goes a step beyond that and adds the exact format of those messages and the topic names as a requirement (essentially expecting them to match with the Fedora Forge (upstream) messages). We don't need to require any of this. As long as the required fields are present, we can just simply update the parsers later (though in this case, we would keep the old Forgejo parsers for upstream support later and create a new set of parsers for Forgejo dist-git).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch

Projects

Development

Successfully merging this pull request may close these issues.

Update Packit's requirements for messages emitted by Forgejo dist-git

2 participants