Skip to content

Commit baf8e29

Browse files
Update Bodhi updates task accepted message (#2315)
Update Bodhi updates task accepted message They are now visible in the dashboard. See packit/dashboard#370 RELEASE NOTES BEGIN N/A RELEASE NOTES END Reviewed-by: Nikola Forró
2 parents 0bbfd66 + e31bfe9 commit baf8e29

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

packit_service/worker/handlers/bodhi.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,11 @@ def get_handler_specific_task_accepted_message(
194194
user = (
195195
"packit" if service_config.deployment == Deployment.prod else "packit-stg"
196196
)
197-
198197
return (
199-
f"You can check the recent Bodhi update activity of `{user}` in "
200-
f"[the Bodhi interface](https://bodhi.fedoraproject.org/users/{user}) (we "
201-
f"have also planned adding support for viewing the updates"
202-
f" in [Packit dashboard]({service_config.dashboard_url}), "
203-
f"see [this issue](https://github.com/packit/dashboard/issues/187))."
198+
"You can check the recent Bodhi update submissions of Packit "
199+
f"in [Packit dashboard]({service_config.dashboard_url}/jobs/bodhi-updates). "
200+
f"You can also check the recent Bodhi update activity of `{user}` in "
201+
f"[the Bodhi interface](https://bodhi.fedoraproject.org/users/{user})."
204202
f"\n\n---\n\n{CHANGED_LOADING_BEHAVIOUR_IN_DISTGIT_MESSAGE}"
205203
)
206204

tests/integration/test_pr_comment.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -2539,14 +2539,15 @@ def test_bodhi_update_retrigger_via_dist_git_pr_comment(pagure_pr_comment_added)
25392539
flexmock(target_branch="the_distgit_branch")
25402540
.should_receive("comment")
25412541
.with_args(
2542-
"The task was accepted. You can check the recent Bodhi update activity of `packit` in "
2543-
"[the Bodhi interface](https://bodhi.fedoraproject.org/users/packit) "
2544-
"(we have also planned adding support for viewing the updates in [Packit dashboard](), "
2545-
"see [this issue](https://github.com/packit/dashboard/issues/187))."
2542+
"The task was accepted. You can check the recent Bodhi update submissions of Packit "
2543+
"in [Packit dashboard](/jobs/bodhi-updates). "
2544+
"You can also check the recent Bodhi update activity of `packit` in "
2545+
"[the Bodhi interface](https://bodhi.fedoraproject.org/users/packit)."
25462546
f"\n\n---\n\n{CHANGED_LOADING_BEHAVIOUR_IN_DISTGIT_MESSAGE}"
25472547
)
25482548
.mock()
25492549
)
2550+
25502551
pagure_project = flexmock(
25512552
PagureProject,
25522553
full_repo_name="rpms/jouduv-dort",

0 commit comments

Comments
 (0)