Skip to content

Conversation

badhezi
Copy link
Contributor

@badhezi badhezi commented Oct 3, 2025

Attempt to address #35556

When triggering a job re-run, we send a duplicate email notification in case the previous state of the job (prior to the re-run), required an email notification.

This change just sets the job status to waiting before all the notifiers evaluation so it will only notify at the end of the job run with the updated status.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 3, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Oct 3, 2025
@badhezi badhezi changed the title Hezi/update run status on rerun Update job status on rerun - avoid duplicate email notification Oct 3, 2025
@badhezi badhezi marked this pull request as draft October 3, 2025 17:19
@badhezi badhezi force-pushed the hezi/update-run-status-on-rerun branch from 56dab26 to 5486690 Compare October 8, 2025 08:40
@badhezi badhezi marked this pull request as ready for review October 8, 2025 08:43
@badhezi
Copy link
Contributor Author

badhezi commented Oct 8, 2025

@ChristopherHX I took a simpler approach by checking if the workflow has just been rerun in MailActionsTrigger and skip the just the email composition part in that case, this should leave existing notifiers as-is and just skip the email send on reruns. Hopes this address the issue without any unwanted behavior change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants