Use configured failure message as suffix in comment for downstream jobs#2199
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
recheck |
|
Build failed. ❌ pre-commit FAILURE in 1m 54s |
| """ | ||
| configured_failure_message = ( | ||
| f"\n\n---\n{configured_message}" | ||
| if (configured_message := job_config.notifications.failure_comment.message) |
There was a problem hiding this comment.
It's nice that people can define this per job.
When creating issues/commenting in issue_repository, use the configured notifications.failure_comment.message in downstrem jobs. Followup of packit#2182
468601a to
24c02fc
Compare
|
Build failed. ✔️ pre-commit SUCCESS in 2m 04s |
|
recheck |
|
Build succeeded. ✔️ pre-commit SUCCESS in 1m 47s |
|
Build succeeded (gate pipeline). ✔️ pre-commit SUCCESS in 1m 47s |
…age (#751) Add note about downstream jobs for notifications.failure_comment.message Related to packit/packit-service#2199 Reviewed-by: František Lachman <flachman@redhat.com>
When creating issues/commenting in issue_repository, use the configured notifications.failure_comment.message in downstrem jobs. Followup of #2182
RELEASE NOTES BEGIN
You can now configure
notifications.failure_comment.messagealso for downstream jobs, where the configured message will be used as an extension of the comment added by default by Packit.RELEASE NOTES END