From 6fbaf6cca5755d1455db5d7a5128a3c9c65e4d15 Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Fri, 6 Feb 2026 10:01:51 +0100 Subject: [PATCH 1/2] Document bodni_extra_params configuration option Signed-off-by: Marek Blaha --- docs/configuration/downstream/bodhi_update.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/configuration/downstream/bodhi_update.md b/docs/configuration/downstream/bodhi_update.md index abfa766c82..1793502467 100644 --- a/docs/configuration/downstream/bodhi_update.md +++ b/docs/configuration/downstream/bodhi_update.md @@ -65,6 +65,17 @@ Packit dist-git configuration. into the configured sidetag group for this job to be triggered. For example, if you want to include a `koji_build` job with the same sidetag group configured in package `foo` in this update, you need to list `foo` here. +* **bodhi_extra_params** - A free-form dictionary that allows specifying extra parameters for creating Bodhi updates. + For a complete list of parameters, refer to the [Bodhi API documentation](https://bodhi.readthedocs.io/). + Options are merged with Packit's values. + + Common parameters include: + - `suggest`: Suggestion for user action after update (`logout`, `reboot`). + - `stable_days`: Number of days before the update can be pushed to stable (e.g., `7`). + - `stable_karma`: Stable karma threshold (e.g., `3`). + - `unstable_karma`: Unstable karma threshold (e.g., `-3`). + - `autokarma`: Whether to automatically push to stable based on karma (boolean). + - `close_bugs`: Whether to close bugs when pushed to stable (boolean). ## Retriggering From 81031b96791c26874dd0a38e1c305ff32f9bd1cd Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Mon, 9 Feb 2026 13:31:56 +0100 Subject: [PATCH 2/2] Add bodhi_extra_params configuration examples Signed-off-by: Marek Blaha --- docs/configuration/downstream/bodhi_update.md | 1 + docs/configuration/examples.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/docs/configuration/downstream/bodhi_update.md b/docs/configuration/downstream/bodhi_update.md index 1793502467..0a84059ff3 100644 --- a/docs/configuration/downstream/bodhi_update.md +++ b/docs/configuration/downstream/bodhi_update.md @@ -68,6 +68,7 @@ Packit dist-git configuration. * **bodhi_extra_params** - A free-form dictionary that allows specifying extra parameters for creating Bodhi updates. For a complete list of parameters, refer to the [Bodhi API documentation](https://bodhi.readthedocs.io/). Options are merged with Packit's values. + Refer to the [configuration examples](/docs/configuration/examples/#fedora-release-automation) for more information. Common parameters include: - `suggest`: Suggestion for user action after update (`logout`, `reboot`). diff --git a/docs/configuration/examples.md b/docs/configuration/examples.md index deff9c474b..9fc50d84d3 100644 --- a/docs/configuration/examples.md +++ b/docs/configuration/examples.md @@ -696,6 +696,23 @@ jobs: +
+ Customizing Bodhi update parameters (e.g., requiring reboot, setting karma thresholds) + +```yaml +- job: bodhi_update + trigger: commit + dist_git_branches: + - fedora-branched + bodhi_extra_params: + suggest: reboot + stable_karma: 5 + unstable_karma: -3 + stable_days: 7 +``` + +
+ ## Get inspired You can also look directly into configuration files of some other projects using Packit: - [Systemd](https://github.com/systemd/systemd/blob/main/.packit.yml)