diff --git a/docs/configuration/downstream/bodhi_update.md b/docs/configuration/downstream/bodhi_update.md index abfa766c82..0a84059ff3 100644 --- a/docs/configuration/downstream/bodhi_update.md +++ b/docs/configuration/downstream/bodhi_update.md @@ -65,6 +65,18 @@ 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. + 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`). + - `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 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)