Something like this has been done in Fedora flavor by @ralphbean : https://gitlab.com/fedora/infrastructure/konflux/rpmbuild-pipeline/-/blob/main/.tekton/libecpg-pull-request.yaml?ref_type=heads#L12-18