Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/configuration/downstream/bodhi_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 17 additions & 0 deletions docs/configuration/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,23 @@ jobs:

</details>

<details>
<summary>Customizing Bodhi update parameters (e.g., requiring reboot, setting karma thresholds)</summary>

```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
```

</details>

## 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)
Expand Down
Loading