Skip to content

Commit

Permalink
Skip the specfile changed check for PR pushes (#99)
Browse files Browse the repository at this point in the history
Skip the specfile changed check for PR pushes

The check will be done later in the packit-service.
Related to packit/packit-service#2271

Reviewed-by: František Lachman <[email protected]>
Reviewed-by: Nikola Forró
  • Loading branch information
softwarefactory-project-zuul[bot] authored Dec 15, 2023
2 parents 0b0eb8b + fa78334 commit c65a89b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packit_service_fedmsg/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ def _koji(topic: str, event: dict, packit_user: str) -> CallbackResult:


def _fedora_dg_push(topic: str, event: dict, packit_user: str) -> CallbackResult:
if getenv("PROJECT", "").startswith("packit") and not specfile_changed(
event,
if (
getenv("PROJECT", "").startswith("packit")
# skip the specfile changed check for commits from PRs
and nested_get(event, "commit", "agent") != "pagure"
and not specfile_changed(
event,
)
):
return CallbackResult(
msg="[Fedora DG] No specfile change, ignoring the push.",
Expand Down

0 comments on commit c65a89b

Please sign in to comment.