Skip to content

Commit

Permalink
Reference CI base object in email body
Browse files Browse the repository at this point in the history
Summary:
Currently we always use the Patchwork series' name in the body of our CI emails.
That will become confusing once we adjust the subject of said emails to reflect
the cover letter OR last patch, as per the revised logic.
With this change we use the previously introduced get_ci_base() function to
retrieve the name that we will also use in the subject moving forward, to
prevent any confusion.

Reviewed By: yurinnick

Differential Revision: D51165510

fbshipit-source-id: 061ae19ff93ea5b09eb62596ab12a2e444b4c702
  • Loading branch information
danielocfb-test authored and facebook-github-bot committed Nov 9, 2023
1 parent ebed377 commit 4babf15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel_patches_daemon/branch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
Dear BPF patch submitter,
[{status}] Your Patchwork submission
{pw_series_name} [1]
{submission_name} [1]
{body}
[1] {pw_series_url}
Expand Down Expand Up @@ -189,7 +189,7 @@ def furnish_ci_email_body(

return EMAIL_TEMPLATE_BASE.format(
status=str(status.value).upper(),
pw_series_name=series.name,
submission_name=get_ci_base(series)["name"],
pw_series_url=series.web_url + "&state=*",
body=body,
)
Expand Down

0 comments on commit 4babf15

Please sign in to comment.