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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.rsignoresissuesevents, so a finding whose issue was closed in Gitea stays "Zu prüfen".Decided
Sync back.
What to do
issuesevents (closed, reopened) from the managed Git source's org webhook for issues Prüfwerk opened (match byTrackerIssue.external_idand repo).Acceptance
Closing a Prüfwerk issue in Gitea changes the finding in Prüfwerk within a minute, and no loop occurs.