Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notification: delete old commit statuses #459

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

alessandro-sorint
Copy link
Contributor

this patch implements automatic deletion of commit statuses older than the defined interval with a default of 7 days.

Comment on lines 1073 to 1079
for i := 0; i < 5; i++ {
commitStatus := createCommitStatus(t, ctx, ns, 1)
expectedCommitStatuses = append(expectedCommitStatuses, commitStatus)

expectedCommitStatusDeliveries = append(expectedCommitStatusDeliveries, createCommitStatusDelivery(t, ctx, ns, commitStatus.ID, types.DeliveryStatusDelivered))
expectedCommitStatusDeliveries = append(expectedCommitStatusDeliveries, createCommitStatusDelivery(t, ctx, ns, commitStatus.ID, types.DeliveryStatusNotDelivered))
}
Copy link
Member

Choose a reason for hiding this comment

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

too much copy and paste from TestRunWebhooksCleaner?

this patch implements automatic deletion of commit statuses older than the defined interval with a default of 7 days.
@sgotti sgotti merged commit 2f16759 into agola-io:master Dec 7, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants