diff --git a/packit_service/worker/reporting/reporters/pagure.py b/packit_service/worker/reporting/reporters/pagure.py index b6f18eefd..dc1a74de2 100644 --- a/packit_service/worker/reporting/reporters/pagure.py +++ b/packit_service/worker/reporting/reporters/pagure.py @@ -6,6 +6,7 @@ from ogr.abstract import CommitStatus +from packit_service.constants import CONTACTS_URL from packit_service.worker.reporting.enums import BaseCommitStatus from .base import StatusReporter @@ -43,13 +44,19 @@ def set_status( # Required because Pagure API doesn't accept empty url. if not url: - url = "https://wiki.centos.org/Manuals/ReleaseNotes/CentOSStream" - - self.project_with_commit.set_commit_status( - self.commit_sha, - state_to_set, - url, - description, - check_name, - trim=True, - ) + url = CONTACTS_URL + + if self.pull_request_object: + self.pull_request_object.set_flag( + username=check_name, comment=description, url=url, status=state_to_set + ) + + else: + self.project_with_commit.set_commit_status( + self.commit_sha, + state_to_set, + url, + description, + check_name, + trim=True, + )