Gitea back-sync: closing or reopening a Prüfwerk issue updates the finding #953

Closed
opened 2026-11-10 10:28:04 +00:00 by sharang · 0 comments
Owner

Gitea back-sync: closing or reopening a Prüfwerk issue in Gitea updates the finding (part of the UX epic).

Today

The sync only goes from Prüfwerk to Gitea. git_source/events.rs ignores issues events, so a finding whose issue was closed in Gitea stays "Zu prüfen".

Decided

Sync back.

What to do

  • Handle issues events (closed, reopened) from the managed Git source's org webhook for issues Prüfwerk opened (match by TrackerIssue.external_id and repo).
  • Closed in Gitea: set the finding to a "closed in the ticket" state, e.g. Resolved with the reason "Ticket in Gitea geschlossen". The next scan confirms it (not found → stays resolved) or reopens it (found again → Prüfwerk reopens the issue with a comment, as today).
  • Reopened in Gitea: the finding becomes undecided again.
  • Ignore events Prüfwerk caused itself (sender = the bot user), so there is no loop.
  • CVE issues: closed in Gitea → the alert shows "ticket closed" and the decision moves to Heute's "KI/Prüfen" bucket. Decide in the PR whether this sets a VEX status. Probably not: VEX needs a justification.
  • Record who closed it (the Gitea user) in the finding's history.

Acceptance

Closing a Prüfwerk issue in Gitea changes the finding in Prüfwerk within a minute, and no loop occurs.

Gitea back-sync: closing or reopening a Prüfwerk issue in Gitea updates the finding (part of the UX epic). ## Today The sync only goes from Prüfwerk to Gitea. `git_source/events.rs` ignores `issues` events, so a finding whose issue was closed in Gitea stays "Zu prüfen". ## Decided Sync back. ## What to do - Handle `issues` events (closed, reopened) from the managed Git source's org webhook for issues Prüfwerk opened (match by `TrackerIssue.external_id` and repo). - **Closed in Gitea**: set the finding to a "closed in the ticket" state, e.g. Resolved with the reason "Ticket in Gitea geschlossen". The next scan confirms it (not found → stays resolved) or reopens it (found again → Prüfwerk reopens the issue with a comment, as today). - **Reopened in Gitea**: the finding becomes undecided again. - Ignore events Prüfwerk caused itself (sender = the bot user), so there is no loop. - CVE issues: closed in Gitea → the alert shows "ticket closed" and the decision moves to Heute's "KI/Prüfen" bucket. Decide in the PR whether this sets a VEX status. Probably not: VEX needs a justification. - Record who closed it (the Gitea user) in the finding's history. ## Acceptance Closing a Prüfwerk issue in Gitea changes the finding in Prüfwerk within a minute, and no loop occurs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#953