Make forge fedora-messaging better #569

Open
opened 2026-05-12 10:09:00 +00:00 by humaton · 2 comments
Owner

Summary

Emit messages for all the repository/organization event messages to fedora-messaging

Details

No response

### Summary Emit messages for all the repository/organization event messages to fedora-messaging ### Details _No response_

One option would be to mirror the event types that forgejo provides

image

Either the overall ones repository/issue/pull_request/action, or the more granular ones e.g. repository.create.

Keeping all of the schemas in sync might be a maintenance chore, and I could not find a reference for where (or even if) the webhook schema is defined in the source. If we make the schema be a generic object and say it's not fedora-messaging place to define it, then that could also simplify things.

One option would be to mirror the event types that forgejo provides ![image](/attachments/71622e53-1c21-4e7d-8232-94c2efcd3124) Either the overall ones `repository`/`issue`/`pull_request`/`action`, or the more granular ones e.g. `repository.create`. Keeping all of the schemas in sync might be a maintenance chore, and I could not find a reference for where (or even if) the webhook schema is defined in the source. If we make the schema be a generic `object` and say it's not fedora-messaging place to define it, then that could also simplify things.
123 KiB
Member

@lecris we can add more event triggers, and the schema package can be found here. As this is a different package entirely for the schema, I do not think this would be a difficult thing to do, but we need to be sure that there is indeed a good case for request granularity. I do not want to create sub objects per repository or organization, as that breaks the established format that we have so far only for the sake of easier management. The dashboard anyway clearly describes the webhook event type as well on the listing.

@lecris we can add more event triggers, and the schema package can be found [here](https://github.com/fedora-infra/webhook-to-fedora-messaging-messages). As this is a different package entirely for the schema, I do not think this would be a difficult thing to do, but we need to be sure that there is indeed a good case for request granularity. I do not want to create sub objects per repository or organization, as that breaks the established format that we have so far only for the sake of easier management. The dashboard anyway clearly describes the webhook event type as well on the listing.
ryanlerch added this to the Backlog project 2026-05-14 05:44:31 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forge/forge#569
No description provided.