[Mellanox] Added patchwork link to commit message (#15301)

- Why I did it
Add the patchwork link to the commit description for non-upstream patches if present

- How I did it
Parse the patchwork/<patch_name>.txt file from hw-mgmt
This commit is contained in:
Vivek
2023-06-08 08:51:58 -07:00
committed by GitHub
parent 96cac8e918
commit 9d8ab1b8e4
6 changed files with 63 additions and 23 deletions

View File

@@ -199,6 +199,7 @@ def build_commit_description(changes):
content = content + f"* {key} : {value}\n"
return content
def parse_id(id_):
if id_ and id_ != "N/A":
id_ = "https://github.com/torvalds/linux/commit/" + id_