Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2024
1 parent 4ff1631 commit 2bb98d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 6 additions & 4 deletions packit_service/worker/helpers/sync_release/sync_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ def job(self) -> Optional[JobConfig]:
self._db_project_object.job_config_trigger_type == job.trigger
# pull-from-upstream can be retriggered by a dist-git PR comment,
# in which case the trigger types don't match
or job.type == JobType.pull_from_upstream
and self._db_project_object.job_config_trigger_type
== JobConfigTriggerType.pull_request
and job.trigger == JobConfigTriggerType.release
or (
job.type == JobType.pull_from_upstream
and self._db_project_object.job_config_trigger_type
== JobConfigTriggerType.pull_request
and job.trigger == JobConfigTriggerType.release
)
)
):
self._job = job
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_bodhi_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,8 +1146,7 @@ def _create_update(dist_git_branch, update_type, koji_builds, sidetag, alias):
0
if missing_dependency
or non_unique_builds
or existing_update
and " " in existing_update.koji_nvrs
or (existing_update and " " in existing_update.koji_nvrs)
else 1
),
)
Expand Down

0 comments on commit 2bb98d1

Please sign in to comment.