Skip to content

Commit

Permalink
Post comment as feedback for /packit koji-tag (#2568)
Browse files Browse the repository at this point in the history
Post comment as feedback for /packit koji-tag

Fixes #2552
I did not include any specific details about the requested tagging, as the feedback should be quick and to stay consistent with other feedback comments.
I would link some interface where users could watch the activity, but not sure if there is anything like that (like a specific Koji subpage), @nforro do you have any suggestions?
RELEASE NOTES BEGIN
N/A
RELEASE NOTES END

Reviewed-by: Nikola Forró
  • Loading branch information
2 parents 9add4e2 + 83f7067 commit 08f84bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packit_service/worker/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
PullFromUpstreamHandler,
DownstreamKojiBuildHandler,
RetriggerDownstreamKojiBuildHandler,
TagIntoSidetagHandler,
)
from packit_service.worker.helpers.build import (
CoprBuildJobHelper,
Expand Down Expand Up @@ -319,6 +320,7 @@ def report_task_accepted(
BodhiUpdateHandler,
RetriggerBodhiUpdateHandler,
RetriggerDownstreamKojiBuildHandler,
TagIntoSidetagHandler,
):
self.report_task_accepted_for_downstream_retrigger_comments(handler_kls)
if handler_kls not in (
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/test_pr_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,8 @@ def test_koji_build_tag_via_dist_git_pr_comment(pagure_pr_comment_added, all_bra
pr_mock = (
flexmock(target_branch="f40")
.should_receive("comment")
.with_args("The task was accepted.")
.with_args(f"{TASK_ACCEPTED} ")
.once()
.mock()
)
flexmock(
Expand Down

0 comments on commit 08f84bf

Please sign in to comment.