From a877eb93fb8ef89dea1803d1924ed69a66b9fc06 Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Feb 12 2017 06:43:04 +0000 Subject: Add build id for the flag This is a PR to add build_id to the jenkins flag attached to the pull-request jenkins in general actually didn't give much insight to what the link is pointing to adding a build id makes it more significant to the user to which build the URL id is pointing to. --- diff --git a/pagure/lib/lib_ci.py b/pagure/lib/lib_ci.py index 4db97e1..5107c63 100644 --- a/pagure/lib/lib_ci.py +++ b/pagure/lib/lib_ci.py @@ -60,11 +60,13 @@ def process_jenkins_build(session, project, build_id, requestfolder): raise pagure.exceptions.PagureException('Request not found') comment, percent = BUILD_STATS[result] + # Adding build ID to the CI type + username = project.ci_hook.ci_type + " #" + str(build_id) pagure.lib.add_pull_request_flag( session, request=request, - username=project.ci_hook.ci_type, + username=username, percent=percent, comment=comment, url=url,